通过代码更改单声道/立体声音频辅助功能设置。 [英] Change mono/stereo audio accessibility setting via code.

查看:104
本文介绍了通过代码更改单声道/立体声音频辅助功能设置。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试更多的时间,而不是现在我想承认设置一个简单的程序,在我的耳机和单声道放大器之间切换我的默认音频设备,只是为了自动化这个过程而不必浏览窗口。我已经管理了
来找到一个简洁的小程序来切换默认音频设备,但我无法弄清楚如何通过代码更改辅助功能设置,使其在设置应用程序之外工作。我已经尝试搞乱注册表,然后强制WM_SETTINGCHANGE
消息,但这也不起作用。我已经没有选择了,我对这些东西很新。 (实际上试图制作所说的程序就是把我带到这里并让我首先安装Visual Studio)


所以问题是:有谁知道怎么做?

解决方案

您好,


请阅读:
https://www.codeproject.com/Messages/3556831/How-to-change-audio- output-input-devices.aspx


https://stackoverflow.com/questions/13054371/programmatically-switch-audio-devices-on-windows-7


此致,Guido


I've been trying for more time than I'd like to admit now to set up a simple program that switches my default audio device between my headphones and my mono amplifier, just to automate this process without having to navigate through windows. I've managed to find a neat little program that switches the default audio device but I can't figure out how to change the accessibility setting via code to make it work outside of the Settings App. I've tried messing around with the registries and then forcing a WM_SETTINGCHANGE message, but that didn't work either. I'm running out of options and I'm pretty new to this stuff. (actually trying to make said program is what brought me here and made me install Visual Studio in the first place)

So the question would be: Does anyone know how to do it?

解决方案

Hello,

read this: https://www.codeproject.com/Messages/3556831/How-to-change-audio-output-input-devices.aspx

https://stackoverflow.com/questions/13054371/programmatically-switch-audio-devices-on-windows-7

Regards, Guido


这篇关于通过代码更改单声道/立体声音频辅助功能设置。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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