LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mplayer -ao ? (https://www.linuxquestions.org/questions/linux-software-2/mplayer-ao-270469/)

delta_simon 12-26-2004 09:06 AM

Mplayer -ao ?
 
How can I edit the mplayer config so that the program always runs
mplayer -ao alsa:device=hw#0.1 ?

MasterC 12-26-2004 09:15 AM

Mplayer supports a config file, when you launch it you'll notice where it looks for it, but generally speaking you can have:
/etc/mplayer.conf

And the line for that would be:
ao = alsa:device=hw0.1

Cool

delta_simon 12-27-2004 05:08 AM

When I insert the line
ao = alsa:device=hw0.x to the mplayer config no sound appear.

I must instead use ao = alsa:device=default but hw0.0 is set to be the default :S

Hammett 12-27-2004 05:44 AM

You can put an alias in your .bashrc file like this:

alias mplayer="mplayer -ao alsa:device=hw#0,1"

Close that terminal, open another one and try


All times are GMT -5. The time now is 08:41 PM.