I am looking for a way to set/change default input device inside my application. I have several different recording devices and it is very anoying to go into the control panel and change default recording device. I was looking around and I did not find anything that could help me with the problem. Application is written in c# and it is targeted for Windows Vista / Windows 7.
A:
There is no public API to do this in Vista/7 AFAIK.
For a media center launch thing I created, I had to open the control panel and send keys to the dialog, a big ugly hack, but it's the best you can do. (Or run .net reflector on media center (It is able to change it, using undocumented calls))
Anders
2009-08-31 16:16:27
Opening control panel is not an option and I dont need it for media center, but tnx for suggestion.
2009-09-02 10:12:03
Opening the control panel and automating the dialog is your only legal option
Anders
2009-09-02 13:29:50
@Matthias Vance http://blogs.msdn.com/larryosterman/archive/2008/07/11/whatever-happened-to-wave-out-mix.aspx#8769290 see the last comment by Larry
Anders
2010-05-17 09:06:49
You are right, I was confused by the answer giving in the other SO thread (user replying that it would work on Windows 7).
Matthias Vance
2010-05-18 12:06:38