This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Command Line - Select a different soundcard

Problems, bugs, suggestions... anything related to SMPlayer.

Command Line - Select a different soundcard

Postby zen2 » Sun Nov 21, 2010 4:48 am

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
zen2
 
Posts: 1
Joined: Sun Nov 21, 2010 1:50 am

Re: Command Line - Select a different soundcard

Postby gitr » Tue Dec 21, 2010 8:10 am

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.
gitr
 


Return to General

Who is online

Users browsing this forum: Bing [Bot] and 37 guests