开发者

Is there a way to start playing an MP3 file while downloading it in iOS?

Is there a way to start playing an MP3 file while downloading it in iOS? I saw this question

How to start playing AVAudioPlayer while downloading?

Is AudioToolbox or CoreAudio the only way to do that?

Edit - I found this link

http://www.kyleshank.com/avplayer-can-play-a-f开发者_StackOverflow社区ile-as-its-being-written-to.html


As mentioned in the question you already put a link to,

AVAudioPlayer is pretty high level and doesn't give you a lot of options

I think that you'll have to use AudioToolbox


AudioFileStream, AudioQueue is the way to go. Implemented it the hard way. The link below helped me out :)

lastFM source


Use OPenAL for your purpose. Here is one wrapper for you http://maniacdev.com/2010/01/openal-sound-manager-class-updated/

Or you can use AudioToolbox as Alaa Nassef suggested.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜