开发者

iOS: Create an MP3 on device

I am trying to create an M开发者_开发知识库P3 audio file on the device (iPhone).

I have found that there is no possibility to record directly in MP3 format.

Only .caf file that may contain AIFF, Linear PCM etc.

I have also found here that there is an AudioConverterFillComplexBuffer function that might, theoretically, convert CAF file to MP3, but I can't find any sample code or explanation on how to use this function.

Any help will be greatly appreciated.

-- Michael Kessler


Try using LAME - open source MP3 encoder library (liblame)

http://lame.sourceforge.net/


As far as I know LAME is GPL which may be an issue for you if you are building an iPhone app.

I believe AudioConverterFillComplexBuffer indeed is the way to go. You might want to take a look at the book "Core Audio Rough Cuts" which has explanations and examples on how to convert audio.

Good luck.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜