Skip to content

Instantly share code, notes, and snippets.

@haxpor
Last active November 14, 2018 08:22
Show Gist options
  • Save haxpor/9751845 to your computer and use it in GitHub Desktop.
Save haxpor/9751845 to your computer and use it in GitHub Desktop.
Convert from .wav & .mp3 to .aifc (music file) for all files in current folder, nice export for ios game
#!/bin/bash
# This script is for converting sound files into .aifc (for music)
for i in *.wav; do
afconvert -f AIFC -d ima4 "$i"
done
for i in *.mp3; do
afconvert -f AIFC -d ima4 "$i"
done
# create a new folder then move newly exported into it
mkdir aifc
mv *.aifc "aifc/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment