• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: magic cookies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: magic cookies
      • From: Stanko Juzbasic <email@hidden>
References: 
 >Re: magic cookies (From: Stanko Juzbasic <email@hidden>)
 >Re: magic cookies (From: Richard Dobson <email@hidden>)

  • Prev by Date: NULL audio buffers from the HAL during a format change?
  • Next by Date: Documentation on AudioToolbox functionality in CoreAudio?
  • Previous by thread: Re: magic cookies
  • Next by thread: Re: magic cookies
  • Index(es):
    • Date
    • Thread