Skip to content

Instantly share code, notes, and snippets.

@jlcampana
Created February 3, 2014 11:29
Show Gist options
  • Save jlcampana/8782370 to your computer and use it in GitHub Desktop.
Save jlcampana/8782370 to your computer and use it in GitHub Desktop.
Script to convert WAV files to CAF to reproduce on iOS
##
## Shell script to batch convert all files in a directory to caf sound format for iPhone
## Place this shell script a directory with sound files and run it: 'sh afconvert_wavtocaf.sh'
## Any comments to '[email protected]'
##
for f in *.wav; do
if [ "$f" != "afconvert_wavtocaf.sh" ]
then
afconvert -f caff -d ima4 $f
echo "$f converted"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment