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 everyth
Simple bash script to convert the mp3 files in a folder to caf for iphone
#!/bin/bash
for f in *.mp3; do
echo "Processing $f file..."
afconvert -f caff -d LEI16@44100 -c 1 "$f" "${f/mp3/caf}"
done
afconvert -f caff -d LEI16@44100 -c 1 in.wav out.caf
References:
afconvert -h
for complete info)this is the best for size:
afconvert -f caff -d ima4 original.wav
It looks like the -c is not working today, I got it with following:
afconvert -f caff -d LEI16 input.m4a output.caf
thanks for the info.
also, if you're looking into additional compression with openAL, this might be of interest:
"iPhone, OpenAL, and IMA4/ADPCM" http://www.wooji-juice.com/blog/iphone-openal-ima4-adpcm.html