Page 1 of 1

Command Line - Select a different soundcard

PostPosted: Sun Nov 21, 2010 4:48 am
by zen2
How to select a diferent soundcard in SMPlayer from command line (what is the parameter?)
I need the possibility to choose audio device when start SMPlayer (or switch it when it already working).
There is the parameter in mplayer :
-ao dsound:device=2
but it don't work in SMPlayer

Re: Command Line - Select a different soundcard

PostPosted: Tue Dec 21, 2010 8:10 am
by gitr
Not sure if this is possible through "-actions" switch but I think you can do this by passing another ini file to smplayer, e.g. (like in "portable mode"):
smplayer -config-path path_to_settings_folder

Than, just change in smplayer.ini the soundcard as you like:
...snip...
[%General]
mplayer_bin=path...
driver\vo="gl:yuv=2:force-pbo"
driver\ao="dsound:device=0"
...snip...

Similar, for the build from portableapps.com, the command is:
"G:\PortableApps\SMPlayerPortable\App\SMPlayer\smplayer.exe" -config-path "G:\PortableApps\SMPlayerPortable\Data\settings"

Cheers and good luck.