您可以尝试使用mixer系列函数来完成您的意图,使用这些函数可以监控声卡的输入和输出线(input and output line)的音量。这里面涉及到的步骤如下:1.打开与声卡相关的mixer设备;2.取得意图监控的line的控制;3.控制所取得的控制器的音量.程序的主要调用到的函数有:mixerOpen();
mixerGetLineInfo();
mixerGetLineControls();
mixerGetcontrolDetails();
mixerSetControlDetails();如果需要进一步的信息,您可以参看Q181550的详细讲述的一个控制音量大小的例子(http://support.microsoft.com/default.aspx?scid=kb;en-us;Q181550)以及其他信息。
- 微软全球技术中心 VC技术支持本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款
(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。为了为您创建更好的讨论环境,请参加我们的用户满意度调查
(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。