开发者

How to imlement Audio Streaming <50 millisecond latency on iPhone

I need to implement audio streaming on iPhone with latency lower than 50 millisecond .

Any ideas on how I can make it work?

I bumped into: http://cocoawithlove.com/2009/06/revisiting-old-post-streaming-and.html

But it's very important to me to k开发者_StackOverflow中文版now that the latency will be very low.

thanks


One way to minimize latency on the receiving end is to use the RemoteIO Audio Unit with very short buffers, and feed it from raw PCM audio or a decompressor for an audio format that requires extremely low computational complexity to decode, as well as small packets.

You pretty much need complete control over the entire network source and path, including hand picking all the equipment, as any router or access point can completely destroy latency by buffeting packets or prioritizing other traffic, etc.

You probably want to use UDP for the IP protocol, with a packet size tuned to your network equipment and to the audio buffer size.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜