Converting audio to CAF format for playback on iPhone using OpenAL

Dave Verwer picture Dave Verwer · Oct 31, 2008 · Viewed 62.7k times · Source

I am using the SoundEngine sample code from Apple in the CrashLanding sample to play back multiple audio files. Using the sample caf files included with CrashLanding everything works fine but when I try and use my own samplesconverted to CAF using afconvert all I get is a stony silence ;)

Does anyone have settings for afconvert that will produce a CAF file capable of being played back through OpenAL?

Answer

Dave Verwer picture Dave Verwer · Oct 31, 2008
afconvert -f caff -d LEI16@44100 -c 1 in.wav out.caf

References: