有没有什么方法可以测量android中的噪音
如何在Android中测量噪音,意味着当我运行我的应用程序时,有一个麦克风可以听到噪音并向我发送噪音好坏的结果。
how to measure noise in android,means when I run my app,there is a MIC which hear noise and send me result that noise is good or bad.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您浏览一下这个文档并尝试一些示例..祝你好运
处理 AUDIO_BECOMING_NOISY 意图
许多编写良好的播放音频的应用程序会在发生导致音频变得嘈杂的事件(通过外部扬声器输出)时自动停止播放。例如,当用户通过耳机听音乐并意外断开耳机与设备的连接时,可能会发生这种情况。但是,这种行为不会自动发生。如果您不实现此功能,音频将从设备的外部扬声器中播放,这可能不是用户想要的。
First you go through this document and try out some examples ..gud luck
Handling the AUDIO_BECOMING_NOISY Intent
Many well-written applications that play audio automatically stop playback when an event occurs that causes the audio to become noisy (ouput through external speakers). For instance, this might happen when a user is listening to music through headphones and accidentally disconnects the headphones from the device. However, this behavior does not happen automatically. If you don't implement this feature, audio plays out of the device's external speakers, which might not be what the user wants.