Convert .m4r / .mp3 to .caf / .aiff in iphone application

I am currently using ffmpeg to convert from .mp3 → to .aiff, but I would like to use this method in xcode, but I don't understand how to use AudioConverter.h in AudioToolbox soo, if someone could help me, I I would be very grateful.

Thanks Enea

+5
source share
3 answers

ExtAudioFile can do a fantastic job. One of the reasons to accept some compressed formats, such as MP3 and convert to PCM, is that when playing audio, there is significantly less waiting time. For example, an MP3 sound effect can take about a second to start playback when the same sound in PCM could start almost immediately. I know, since I convert my sounds to PCM during startup and eliminate the delays that I suffered from.

Download iPhoneExtAudioFileConvertTest and you will find everything you need to make your own conversions

+4
source

, - ? iphone AudioQueue mp3 . , iPhone. , , iPhone .

+1

You can use ExtAudioFile to open and convert the file to CAF with PCM data.

+1
source

All Articles