Converting audio to CAF format for playback on iPhone using OpenAL

前端 未结 5 711
无人共我
无人共我 2020-12-07 06:37

I am using the SoundEngine sample code from Apple in the CrashLanding sample to play back multiple audio files. Using the sample caf files included with CrashLanding everyth

5条回答
  •  抹茶落季
    2020-12-07 07:10

    Simple bash script to convert the mp3 files in a folder to caf for iphone

    #!/bin/bash
    for f in *.mp3; do
      echo "Processing $f file..."
      afconvert -f caff -d LEI16@44100 -c 1 "$f" "${f/mp3/caf}"
    done
    

提交回复
热议问题