You are not logged in.

#1 2011-05-22 09:36:03

chrische
Member
Registered: 2011-05-22
Posts: 2

Pause Resume MPD issue

Hi everyone!

I got a problem, since i had installed gnome 3 beside my default WM.
There were no problems changing everything from alsa to pulse and i got sound to,
but it seems like, there is a pause/resume issue with MPD.
Everytime i pause a song and after a while trying to resume it there is no output.
I have to stop the song and then play it from the begining to get it startet again.

I had these problems not before as i used alsa only. It seems to be some issue
between Pulseaudio and mpd going on.

I'am using:

MPD v. 0.16.2
ncmpcpp als client.
amixer to control soundlevel
Pulseaudio.

I hope someone can tell me whats the matter because its very disturbing and i couldn't find
something simmilar in this forum.

Sorry for my poor englisch...

Offline

#2 2011-05-22 12:43:39

madchine
Member
From: Denmark
Registered: 2009-11-04
Posts: 62
Website

Re: Pause Resume MPD issue

I don't know if I can help you but just to clarify: When  you say that you have changed "everything from alsa to pulse", does that include changing MPDs output from ALSA to Pulse? The /etc/mpd.conf file contains a section named audio_output which should also be changed to Pulse settings.

Or maybe you're keeping it on ALSA so as to be able to use it from your default non-pulse supporting WM?

At any rate, if MPD outputs ALSA it will still be picked up by the ALSA plugin in Pulse, but maybe - I have no evidence for this, it's just random guessing, mind you - it might not be as perfect as native Pulse output?

EDIT: Oh and your English is fine, but try to avoid the 'c' in Englisch - it's dead German give-away wink

Last edited by madchine (2011-05-22 12:45:11)

Offline

#3 2011-05-22 13:15:09

chrische
Member
Registered: 2011-05-22
Posts: 2

Re: Pause Resume MPD issue

This is how my mpd.conf audio_output section looks like, maybe this will help somehow

 audio_output {
    type        "pulse"
    name        "MPD output"
    device        "hw:0,0"
    mixer_control    "master"    
}

But it's curious because all other not MPD based players, like rhythmbox, work fine though.
My default WM is dwm, but i would prefer, to use gnome too.

Offline

#4 2011-05-22 14:24:47

madchine
Member
From: Denmark
Registered: 2009-11-04
Posts: 62
Website

Re: Pause Resume MPD issue

Well, so much for my theory...  hmm

A few things off the top of my head:
- I think the ability to assign ALSA control over mixers is an ALSA thing seeing as the PA output will have its own volume control. And I don't think you need to name the hardware device either - that's an ALSA thing as well. Probably doesn't hurt but you might wanna try commenting them out - see if it makes any difference?
- When you say 'no output' what exactly do you mean? Just no sound or have tried looking at the 'Applications' tab in the Gnome 3 sound settings? Does the output have an entry there while playing? While pausing? After unpausing?
- As a last suggestion, you might want to try adding an additional output section to mpd.conf (as the comments state, you can have as many as you like), namely a classic ALSA output. As I noted in the last post, it should get picked up by PA. It's not much of an idea but it might give some information about the problem. You might want to comment out the PA output while testing. Standard example:

audio_output { 
         type                    "alsa"
         name                    "My ALSA Device"
         device                  "hw:0,0"     # optional
         format                  "44100:16:2" # optional
}

Offline

#5 2011-05-22 14:27:11

madchine
Member
From: Denmark
Registered: 2009-11-04
Posts: 62
Website

Re: Pause Resume MPD issue

Offline

#6 2011-06-02 03:26:03

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Pause Resume MPD issue

I am having pretty much the same problem on this machine.  If I pause, then try to resume a playing track, most of the time it won't continue; sometimes it will.  If I keep trying to pause and resume, MPD eventually completely locks up.

Last edited by Wintervenom (2011-06-02 03:26:27)

Offline

#7 2011-07-27 09:11:02

minami
Member
Registered: 2010-02-01
Posts: 7

Re: Pause Resume MPD issue

Same problem here, my mpd.conf audio_output settings are:

audio_output {
    type        "pulse"
    name        "My Pulse Output"
}

running Gnome 3 without gnome-shell (xmonad as window manager).
mpd is run as current user.
Anyone found a solution?

Offline

#8 2011-08-05 12:05:08

wan
Member
Registered: 2010-11-19
Posts: 5

Re: Pause Resume MPD issue

I had the same problem.

A solution I found is to have pulseaudio-alsa installed, and configure mpd output for alsa:

audio_output {
    type        "alsa"
    name        "mpd output"
}

Offline

#9 2011-08-05 15:05:38

minami
Member
Registered: 2010-02-01
Posts: 7

Re: Pause Resume MPD issue

Thx, this works ... pity, that pulse audio can not be used directly.

Offline

#10 2011-08-11 19:46:06

manzdagratiano
Member
From: New Jersey, USA
Registered: 2010-10-08
Posts: 137

Re: Pause Resume MPD issue

Darn... Same problem here... Is there an existing bug report to tackle this?


Be formless, shapeless... like water. Now you put water into a cup, it becomes the cup; you put water into a bottle it becomes the bottle; if you put it in a teapot it becomes the teapot... Now water can flow, or it can crash... Be water my friend

Offline

#11 2011-10-13 19:11:23

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Pause Resume MPD issue

tar xvf pulseaudio-alsa-1-2-any.pkg.tar.xz 

.PKGINFO
etc/
etc/asound.conf

pavilion ~/Downloads:

cat etc/asound.conf 
# Use PulseAudio by default
pcm.!default {
  type pulse
}

ctl.!default {
  type pulse
}

# Explicit PulseAudio device
pcm.pulse {
  type pulse
}

ctl.pulse {
  type pulse
}

Dependencies: pulseaudio and alsa-plugins


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB