Re: Writing little-endian AIFF/AIFC files
Re: Writing little-endian AIFF/AIFC files
- Subject: Re: Writing little-endian AIFF/AIFC files
- From: Brian Willoughby <email@hidden>
- Date: Sun, 29 Mar 2009 16:10:13 -0700
On Mar 29, 2009, at 15:04, Thomas Tempelmann wrote:
On Sun, Mar 29, 2009 at 17:16, Adriaan van Os
<email@hidden> wrote:
I have been trying to write little-endian AIFF/AIFC files, so far
without
success.
Funny you bring that up - I was just now, in the past hour, looking
for the very same thing.
I have an incoming stream of float32 audio values which I want to
write quickly to a file for logging, and would like to be able to play
them with Quicktime later for verification.
I could convert the data to PCM, but that would only complicate
matters, and possibly introduce new errors, while I try to use the
data for debugging other errors.
float32 is PCM. LPCM to be precise.
Perhaps you refer to the conversion from float to int?
And yes, docs on this are sparse. If I find out more I'll report back.
But I might just give up and store it to a WAV file, which seems
easier to generate.
WAV is exactly the same structure as AIFF, except for byte-order and a
few minor details of meta data and constants. Both formats are
equally easy to generate, or equally difficult to do correctly if you
want to be certain of compatibility with existing software.
AudioFile and/or ExtendedAudioFile, both part of CoreAudio, should
make this easy and highly compatible. Earlier in this thread, someone
pointed out that these API do not support little-endian AIFF, but
further down the list, you can see that the API does support little-
endian float32, so you're in luck.
Brian Willoughby
Sound Consulting
_______________________________________________
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