Re: How to configure MPlayer Pl ugin to use a second sound device?

Henk van Velden <[email protected]>
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
Op dinsdag 22 mei 2007, schreef Kevin DeKorte:
> Henk van Velden wrote:
> > I can find the results of the above in $HOME/.mplayer/gui.conf:
> > ao_oss_mixer = "/dev/mixer1"
> > ao_oss_device = "/dev/dsp1"
> >
> > And now for  MPlayer Plugin (3.31-0.pm.2) in Firefox (1.0.6-16).
> > This still uses the standard sound device so it seems to have a different
> > configuration file(s).
> > http://mplayerplug-in.sourceforge.net/config.php mentions
> > $HOME/.mplayer/mplayerplug-in.conf and which parameters can be entered
> > there. The two paremeters mentioned above are not in the list. I tried
> > them out anyhow, but now no sound at all, so I removed that.
> >
> > Is there any possibility to configure The MPlayer Plugin to use other
> > devices and how is it done.
> >
> > Thanks for looking into this problem.
>
> I think that adding this line to mplayerplug-in.conf will do what you want
>
> ao=oss:/dev/dsp1:/dev/mixer1

That did it!! Thank you very much!

>
> You can test it first with mplayer using this
> mplayer -ao oss:/dev/dsp1:/dev/mixer1 {some audio file}
>
> You may also want to try the alsa driver
>
> ao=alsa:device=hw=1.0
>
> Which tells it to use the second card,first device. You might need to
> play around with the numbers...  The file /proc/asound/cards should list
> your cards and then the file /proc/asounc/devices will list devices.
> You'll want to look for the 'digital audio playback' listings and then
> look for [ #- %] where # is the card # and % is the device and that will
> tell you which ones to try.

I found these and your description is correct.

>
> mplayer -ao alsa:device=hw=1.0 {some audio file}
>
> Will allow you to test this out and get it working. I would recommend
> ALSA over OSS.
>
I will try the ALSA solution later. I used OSS because it made things working 
in several players and I could not find configuration items like /dev/... 
(those are things I understand) in the ALSA parameters. But your suggestions 
above may give the clue how to solve this for ALSA (also in other players).
>
> Kevin

Thanks again for this prompt reaction.

-- 
Henk van Velden

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.