开发者

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

开发者 https://www.devze.com 2023-01-11 22:28 出处:网络
is there a way to programmatically convert .caf audio files to .mp3 audio files on开发者_Python百科 the iPad platform?There is NO way to encode TO mp3 on the iPhone.Apple does not provide the encoders

is there a way to programmatically convert .caf audio files to .mp3 audio files on开发者_Python百科 the iPad platform?


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


OSStatus AudioConverterFillComplexBuffer(

   AudioConverterRef                   inAudioConverter,      
   AudioConverterComplexInputDataProc  inInputDataProc,   
   void                                *inInputDataProcUserData,   
   UInt32                              *ioOutputDataPacketSize,  
   AudioBufferList                     *outOutputData,  
   AudioStreamPacketDescription        *outPacketDescription  
);

Still working on an implementation, but this method is meant to be used for this conversion.

It is declared in audiotoolbox -> audioConverter

0

精彩评论

暂无评论...
验证码 换一张
取 消