Microsoft
CSIP
WindowsMobile
MEDC
合作伙伴
体验中心
设Winbile为首页
|
加Winbile到收藏夹
新 闻
专 家
数据库
Web
.NET CF
WM/WinCE
.NET MF
多媒体游戏
G P S
安 全
手机大全
数字家庭
评 测
嵌入式设备
移动电子商务
移动信息化
游客
欢迎光临
登录
|
注册
主页
论坛
信箱
控制面板
全站搜索
主页
»
论坛首页
»
Windows Mobile 开发讨论区
»
Visual Studio 开发专区
»
请问如何打开扬声器设备,以达到免提效果
发起投票
|
发起主题
Re: 请问如何打开扬声器设备,以达到免提效果
第1楼
2006-10-11
迅影
职务:
普通用户
积分:37
等级:
初级程序员一级
金钱:
0
精华: 0
帖子数:
7
发送站内留言
回复
|
引用
|
编辑
|
Top
照你所说,那还真是郁闷。
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
主页
»
论坛首页
»
Windows Mobile 开发讨论区
»
Visual Studio 开发专区
»
请问如何打开扬声器设备,以达到免提效果