1
votes

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

1
You need to pass VLC option "--dshow-adev="<audio device name>" in your libVLC coding. You can use VLC GUI capture device tab to find the name of your preferred audio device first and use the name in your coding. See VLC command line helpecle

1 Answers

3
votes

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: