Click here to Skip to main content
15,886,058 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello!
I am going to enable stereo mix device as audio input device to capture my playback audio.
But I can't find certain solutions from googling.
On google, there are many solutions using Control Panel > Playback devices, but I am gonna enable it programmatically using C++.
I wish everybody's help.
Posted

1 solution

You don't specify which operating system you are using, but you need to download the Windows Driver Kit (WDK)[^] (The link is for Windows 10)

By installing the WDK the command line tool DevCon[^] will also be installed.
Quote:
DevCon (Devcon.exe), the Device Console, is a command-line tool that displays detailed information about devices on computers running Windows. You can use DevCon to enable, disable, install, configure, and remove devices.


The source code[^] for DevCon is available as well, so you can see how things are done in this application.

I hope this info will get you started.
 
Share this answer
 
Comments
icmtop 2-Dec-15 2:10am    
I am icmtop, who asked this question.
Thank you George Jonsson for your help.
My OS is Windows 7.
And I am downloading windows driver kit 8.1. I'll try your solution. Thank you.
George Jonsson 2-Dec-15 2:59am    
You are welcome. I hope you find a solution.
icmtop 2-Dec-15 4:49am    
I have tried with devcon.
When I have executed "devcon hwids *", I could not find stereo mix device on the list.
How can I find solution.
I think I can enable or disable all the devices on my computer using devcon, but there is not the device that I am looking for on list.
What can I do in this time?
I wish helps.
George Jonsson 2-Dec-15 4:55am    
Is a stereo mix device a hardware device?
Can you find the microphone?
icmtop 2-Dec-15 5:11am    
Stereo mix device can not be said as hardware device. But it is supported by sound drivers to "hear my voice" from my computer's outputtings.
I am using microphone, but I can't find 'microphone'.

I will show my test works.
1. devcon hwids * > files.txt
2. open files.txt
3. Ctrl+F > microphone
4. it says that there is not such word.
That's all.
I am beginner in hardware programming.
I appreciate your helps.
I think you can help me sure.
Thank you very much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900