Convert WAV files to CAF for iOS and tvOS

  • Apple’s native container for uncompressed or compressed audio
  • Handles very short sounds extremely well
  • No 4GB file limit (unlike WAV)
  • Works flawlessly with AVAudioPlayer, SKAction.playSoundFileNamed, and AudioToolbox

To convert a WAV file into a CAF file using linear‑PCM, little‑endian, 16‑bit audio

afconvert -f caff -d LEI16 early_exit.wav early_exit.caf