Re: magic cookies
Re: magic cookies
- Subject: Re: magic cookies
- From: James McCartney <email@hidden>
- Date: Wed, 15 Oct 2003 16:52:12 -0700
On Oct 15, 2003, at 3:58 PM, Richard Dobson wrote:
At the risk of saying something completely heretical on an Apple list:
libsndfile is at: http://www.zip.com.au/~erikd/libsndfile/
As both a user and competitor of libsndfile, I'd like to explain the
philosophical difference of AudioFile and libsndfile.
libsndfile reads mostly PCM files and simple encodings and has built in
conversion that will convert it to any int or float size you want.
AudioFile on the other hand does not touch the data at all. It is a
file parser with a direct pass through to the raw data in the file,
which you then put through the AudioConverter. Thus it can read and
write compressed formats that the AudioConverter supports (in Panther)
such as MP3 and AAC ADTS.
Even if you are using libsndfile, on MacOS X you might want to bypass
libsndfile's built in conversion and instead use
sf_read_raw/sf_write_raw so that you can use the more optimized
blitters built into the AudioConverter - especially if you have to be
doing a sample rate conversion and/or a deinterleave anyway.
AudioFile also does some optimizations of AIFF and WAVE files such as
putting the sample data on a page boundary in the file which enables
the file system to map in the data in the fastest way.
In Panther, AudioFile lets you pass in callbacks to get the audio data
from a source other than a file.
-
james mccartney
apple coreaudio
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.