Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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