Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am developing multimedia program using Microsoft Visual Studio 2008 on Windows 7.
But I can't solve this problem for 10 days.

I want to enable or disable stereo mix programatically in runtime.
As you know, stereo mix can be said as virtual audio source to capture or send "hear-me-voice" that is outputting from my computer.
I tried with devcon and so on.
But I've failed in any solutions on googling.

I have already asked this question, but I think that there is no answerer, because my questions were not correct.

So I asked again.

Devcon doesn't find stereo mix device.

I want to know this solution using C++.
Posted
Comments
Ray Radin 8-Dec-15 15:36pm    
You received no answer because your question is unclear.
First of all, what do you mean by stereo mix?
My first thought was that you're mixing audio data but it's unlikely.
Try answering that question first.
icmtop 8-Dec-15 15:48pm    
Stereo mix is for recording system's playback audio. It is also recording source such as microphone and line in.
I am going to stream playback audio to other computer.
To do this, I have to select stereo mix(virtual device) as audio source.
This is almost like playback capture applications such as Stereo Mix Plus.
Ray Radin 8-Dec-15 16:26pm    
Have you successfully capture the audio data?
icmtop 8-Dec-15 16:49pm    
Stereo mix is disabled by audio drivers in default.
When I enable it using control panel>Sound>Recording>context menu>Show disabled devices>Enable stereo mix, I can capture and send audio stream.
But I want to enable it programatically for users.
My programming language is C++.

1 solution

have a look at How to enumerate audio endpoint (IMMDevice) properties on your system[^]

That uses the IMMDevice interface[^] which drops you right into a bunch of useful APIs
 
Share this answer
 

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