Microsoft CSIP WindowsMobile MEDC 合作伙伴 体验中心
设Winbile为首页    |    加Winbile到收藏夹          
欢迎光临

Re: 请问如何打开扬声器设备,以达到免提效果

第1楼
2006-10-11
职务:普通用户
积分:37
等级: 初级程序员一级
金钱: 0
精华: 0
帖子数:7
发帖数前500位(291)

照你所说,那还真是郁闷。



MS的waveOutMessage 函数,MM_WOM_FORCESPEAKER 按说明,应该是指切换到扬声器播放,但可能只在已接了耳机,并且音频驱动支持时有效。用于比如接上耳机,又需要在扬声器响铃的地方。由于我现手上没有耳机线,所以也还未测试。

http://msdn2.microsoft.com/en-us/library/ms894688.aspx

In general, when the headset is plugged into a Windows Mobile-based device, all audio should be routed to the headset by default. There are, however, certain sounds, such as the phone ring, that are always most appropriately played through the external speaker so it can always be heard.



Support for the MM_WOM_FORCESPEAKER message is driver dependent. The AR11 sample audio driver implements this message. Hardware that supports selectively routing individual streams to the speaker is rare. So in practice, audio drivers typically keep a reference count of how many streams are to be routed to the speaker. If the number of streams is non-zero then all audio is routed to the speaker.
 
2008-04-28 15:27 回复 | 引用 | 编辑 | Top



Copy Right© CSIP 信息产业部软件与集成电路促进中心 All Rights Reserved 版权所有 Winbile v2.0 (Debug Build: 0.15623) 京ICP备06020771号
© 2008
. 页面执行: 0.203秒. 内存使用: 166.3MB. 7 次数据库查询.