我如何编程控制Windows 7的调音台? [英] How can I control the Windows 7 mixer programmatically?

查看:233
本文介绍了我如何编程控制Windows 7的调音台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 7已经可以让你单独静音应用程序每个应用程序的音量控制。我怎么能静音和取消静音从一个控制台应用程序的应用程序?

Windows 7 has per-application volume controls that let you mute applications individually. How can I mute and unmute an application from a console app?

推荐答案

您将要使用的 IAudioSessionManager2 COM接口。看看 Vista的核心音频API主音量控制它包装一些新的核心音频的A​​PI 。控制台项目其中列举激活音频会话,并让您调整音量和活跃的音频会话的静音状态。

You'll want to use the IAudioSessionManager2 COM interface. Have a look at Vista Core Audio API Master Volume Control that wraps some of the new Core Audio APIs. The console project therein enumerates active audio sessions and lets you tweak volume and mute status of an active audio session.

这篇关于我如何编程控制Windows 7的调音台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆