Skip to content

Instantly share code, notes, and snippets.

@haxpor
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haxpor/9751806 to your computer and use it in GitHub Desktop.
Save haxpor/9751806 to your computer and use it in GitHub Desktop.
Converter to .caf from .wav in the current folder, nice export for ios game
#!/bin/bash
# This script is for converting sound files into .caf (for sfx)
for i in *.wav; do
afconvert -f caff -d LEI16@22050 -c 1 "$i"
done
# create a new folder then move newly exported into it
mkdir caf
mv *.caf "caf/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment