Page 1 of 1

[Resolved] Sound card selection in VLC main form

Posted: 22 Mar 2012 21:47
by ubick
Hi,

On my computer, I have 2 soundcards, one for my hearphone, the other for my speakers. I often change from one to other depending if I want to share my sound with other or not. It's not so "pratical" (I mean: easy to use) to go in settings menu, select audio item and then select the sound card I want. Then I need to restart VLC... (I never see a software able to change output soundcard without it, so I guess it comes with windows).

I'd like to be able to choose which sound card I use in VLC main form, something like a combo box listing different sound cards detected, that, when change, ask confirmation and then restart VLC on his own.
I didn't found the way to have that actually. Did I miss something like this ?

If I didn't miss it, maybe I could do it. (I'm programmer, not use to language C but I can learn) But I don't know anything about how VLC works internally... So here's some questions:
An addon/plugin could do it ?
Or I need to modify main program to achieve it ?

If I need to make it, I'll surely have other questions later but I'll start reading documentation available...

Anway, big thank for this great software.
Ubick

PS: I'm not an english speaking man, so please, fogive my language mistake ^^

Re: Sound card selection in VLC main form

Posted: 23 Mar 2012 19:22
by VLC_help
It would be easier to create .bat files or shortcuts that start VLC with chosen soundcard.

Code: Select all

--directx-audio-device-name={default} Output device Select your audio output device
or

Code: Select all

--waveout-audio-device={wavemapper} Select Audio Device Select special Audio device, or let windows decide (default), change needs VLC restart to apply.

Re: Sound card selection in VLC main form

Posted: 24 Mar 2012 12:47
by ubick
How could I miss this possibility !?!
Thanks for the idea ! Sure, it's an easier way to achieve it than entering inside VLC code... ;-)

But, I don't see people without some basics in computer knowledge creating .bat files for it whereas the combobox idea could be used by anyone.

Anyway, thanks to you, now I can choose sound card at VLC start.

Re: [Resolved] Sound card selection in VLC main form

Posted: 06 Jan 2013 21:13
by meameamea
--directx-audio-device seems to be the correct one. (not --directx-audio-device-name. Using 2.05 on Win7-64)

I just jused the line from the vlcrc from my user dir and added -- to use it as a command line parameter (+ " " around the device name)

The vlcrc should contain the current output device. And after changing it manually in the graphic user interface to my desired sound device it listed the correct name for the device to use in command line or shortcuts.