I am capturing the desktop using VLC and DirectShow an I need to find the main speakers audio device in order to capture all the sound from the desktop, can this be done programmaticly ? I am using C# in windows XP and 7
Asked
Active
Viewed 1,613 times
1
-
You need to pass VLC option `"--dshow-adev=" – ecle Feb 19 '12 at 17:46
1 Answers
3
You actually cannot capture data from speakers. The real options are:
- audio capture from real audio input device, such as microphone
- audio capture from loop back device (provided that it is enabled)
Note that loopback capture is different in Vista+ and older systems, also previously discussed here:
-
loopback capture can only work if the sound card supports it ? assuming it does how can I detect the loopback device name ? – jacob Dec 13 '11 at 12:18
-
1I am not sure if the input is marked specifically to indicated its loopback nature. It is possibly not and/or vendor specific. – Roman R. Dec 13 '11 at 12:57
-
-
It should be supported by hardware, however note it's often (or typically?) disabled by default, so it might be there and you need to go to manually re-enable it. – Roman R. Dec 13 '11 at 13:03
-
@jacob you can use [Virtual Audio Cable](http://software.muzychenko.net/eng/vac.htm) as software loopback device. The demo version should be ok to test with. – wimh Dec 19 '11 at 21:49