Re: AudioFileWritePackets data format
Re: AudioFileWritePackets data format
- Subject: Re: AudioFileWritePackets data format
- From: Stephen Blinkhorn <email@hidden>
- Date: Fri, 5 Nov 2010 23:20:19 -0600
On 5 Nov 2010, at 17:11, Stephen F. Booth wrote:
If you want to use AudioFile you'll have to convert to the file's
format first. ExtAudioFile, though, has an internal AudioConverter
and will perform the conversion for you as long as the client data
format is set.
Thanks, that did the trick!
Stephen
On Fri, Nov 5, 2010 at 4:08 PM, Stephen Blinkhorn <email@hidden
> wrote:
Hi,
I have a sound buffer in memory that I want to export as an audio
file. The sound buffer contains raw 64 bit floating point data and
I'd like to export that as a 24 bit AIFF.
Is it possible to use AudioFileWritePackets directly (specifying an
AudioStreamPacketDescription) on the 64 bit float data to write to
the AudioFile or must I convert the data to 24 bit first?
I'm thinking I can use AudioFileWritePackets to write any data to a
file as long as it knows the source data format and the destination
data format and it will automatically convert? Is that correct?
I'm getting white noise in the exported files!
Thanks,
Stephen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden