How to convert .caf to .mp3 file programmatically on iPhone or iPad?

Is there a way to programmatically convert .caf audio files to .mp3 iPad audio files?

+3
iphone ipad audio mp3
source share
2 answers

There is no way to encode TO mp3 on iPhone. Apple does not provide encoders for mp3, presumably due to licensing.

+3
source share
OSStatus AudioConverterFillComplexBuffer( AudioConverterRef inAudioConverter, AudioConverterComplexInputDataProc inInputDataProc, void *inInputDataProcUserData, UInt32 *ioOutputDataPacketSize, AudioBufferList *outOutputData, AudioStreamPacketDescription *outPacketDescription ); 

Still working on an implementation, but this method is for this conversion.

Announced in audiotoolbox -> audioConverter

0
source share

All Articles