Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.


From Wiki
Jump to: navigation, search
Article Metadata

huwell 在 29 Jun 2007 创建
最后由 hamishwillee 在 30 May 2013 编辑
  • 开发伙伴平台:

60系列开发平台 1.0/2.0

  • 详细描述

我怎样可以检测到系统正在用音频设备播放音频,或者说另外的 一个程序正在使用系统音频设备呢?我怎样可以发现音频设备现 在是否正在忙碌中,有没有可以不打断其他程序的解决方案。

  • 解决方案

检测音频设备并没有直接的方法。但是可以尝试播放一段测试音 乐(频率 20 KHz, 优先级 = EMdaPriorityMin, 长度 = 0 ms). 如果返回的值是KErrInUse,那么这说明音频服务器正在使用中.

注意:有些情况下其他的多媒体客户端程序有可能一直保留对音 频设备的占用。

播放声音的示例代码在Series 60 SDK的Sound example中有演示

This page was last modified on 30 May 2013, at 04:41.
58 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.