Skip to content

Instantly share code, notes, and snippets.

@haxpor
Last active Aug 29, 2015
Embed
What would you like to do?
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