ipad 1 与 ipad 2 上的麦克风(使用 Flex 开发)
我有一个播放麦克风的简单应用程序 - 代码取自:
该示例在 Ipad 2 上运行良好,但不适用于 Ipad 1(行为不一致,有时会播放几秒钟然后中断)。
任何人都可以在 Ipad 1 上使用麦克风(使用 Flex 4.5.1 开发),我需要一个非常简单的东西 - 录制语音并播放
谢谢
I have a simple application that plays microphone - the code is taken from :
This sample works fine on Ipad 2 but not on Ipad 1 (inconsistent behavior, sometimes plays a few seconds and breaks).
was anyone able to use the microphone on Ipad 1 (developed with flex 4.5.1), I need a very simple thing - record voice and play it
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试增加播放缓冲区大小。它位于 playSound 函数中,在示例中它设置为 8192,这应该足够了。尝试 16384 看看是否可以解决问题。请注意,这可能会使您的播放看起来有延迟。
您是否在调试或发布模式下编译此应用程序以进行测试?声音播放在调试模式下通常会断断续续,而在发布模式下则表现明显更好。
Try increasing your buffer size for playback. This is located in the playSound function and in the example it is set to 8192 which should be more than enough. Try 16384 and see if that fixes it. Please note that this may make your playback seem to be delayed.
Are you compiling this application in Debug or Release mode to test? Sound playback is usually choppy in Debug mode and performs significantly better in Release.