在发生一定的缓冲量后,如何在 iPhone 中传输音频?
我正在将 Matt Gallagher 的 AudioStreamer 类用于我的音频流应用程序。我需要使音频流不间断。有人能帮我吗?我认为与缓冲大小有关。作为 iPhone 开发的新手,请帮助我。
谢谢
I am using Matt Gallagher's AudioStreamer class for my audio streaming app. I need to make the audio stream without any interruption. Can anyone help me in this? I think there is something to do with the buffering size. As am new to iphone developing please help me out.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,不,您不能强制音频不间断地播放,您可以增加缓冲区大小。
增加缓冲区会有一点帮助,不要设置得太大,否则缓冲时间会很长。
但最重要的是移动互联网,这并不是传输音频的最佳方式。
如果连接断开,那么您的流将被中断,您对此无能为力。
Well no, you can't force the audio to play uninterrupted, you can increase the buffer size.
Increasing the buffer will help a bit, don't make it to big or it will take a long time to buffer.
But the most important thing is the mobile internet, which isn't the best to stream Audio.
If the connection is dropped then your stream will be interrupted and there is nothing you can really do about it.