Author Topic: mplayer next/previous song no sound  (Read 2894 times)

tri1976

  • Newbie
  • *
  • Posts: 16
    • View Profile
mplayer next/previous song no sound
« on: October 09, 2010, 23: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.

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: mplayer next/previous song no sound
« Reply #1 on: October 11, 2010, 03: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

tri1976

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: mplayer next/previous song no sound [Solved]
« Reply #2 on: October 11, 2010, 18:37:02 »
You can also put that option in a line of ~/.mplayer/config :
ao=pulse
It works.  Thank you.