gmusicbrowser Forum

Main board => Questions => Topic started by: tri1976 on October 09, 2010, 18:28:17

Title: mplayer next/previous song no sound
Post by: tri1976 on October 09, 2010, 18:28:17
I'm using gmb 1.1.5 and mplayer backend.  When a song is playing, goto the next/previous song, there is no sound even though it's playing.  If I stop and play the same song, there is sound.  I had this problem with stable version as well and had to put in some options for mplayer.  I forgot what they were, can someone help?  Thanks.
Title: Re: mplayer next/previous song no sound
Post by: Quentin Sculo on October 10, 2010, 22:30:15
I think it's caused by a mplayer process starting before a previous mplayer process has closed the audio output, AND mplayer use an output that can't be shared with other apps (or an other mplayer process).

In that case you need to tell mplayer to use an output that can be shared with other apps.
"mplayer -ao help" will give you the list of possible outputs
You should try pulse, alsa, sdl or others depending on your system configuration
You can test one with "mplayer -ao pulse SOMEFILE.mp3"

You can specify a mplayer output to gmusicbrowser by adding the command-line option in the advanced options dialog of mplayer (audio tab->small advanced options button)
for example "-ao pulse"

You can also put that option in a line of ~/.mplayer/config :
ao=pulse
so that mplayer uses this output even outside gmusicbrowser
Title: Re: mplayer next/previous song no sound [Solved]
Post by: tri1976 on October 11, 2010, 13:37:02
Quote from: Quentin Sculo on October 10, 2010, 22:30:15
You can also put that option in a line of ~/.mplayer/config :
ao=pulse
It works.  Thank you.