You are not logged in.

#1 2016-05-15 16:55:30

incertia
Member
Registered: 2014-10-25
Posts: 29

mpd play/pause skipping

Whenever I toggle between play/pause with a mpd client, a minor bit (<0.3s) is always skipped for whatever reason. Is this due to how mpd works?

Offline

#2 2016-05-15 21:19:44

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd play/pause skipping

can't confirm. What's your setup, config.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2016-05-15 21:42:30

incertia
Member
Registered: 2014-10-25
Posts: 29

Re: mpd play/pause skipping

best way to see this is to spam pause/play.

# mpd.conf
# Required files
db_file            "~/.config/mpd/database"
log_file           "~/.config/mpd/log"

# Optional
music_directory    "~/music/"
playlist_directory "~/.config/mpd/playlists"
pid_file           "~/.config/mpd/pid"
state_file         "~/.config/mpd/state"
sticker_file       "~/.config/mpd/sticker.sql"

# software volume control
mixer_type "software"

# pulseaudio
audio_output {
    type "pulse"
    name "pulseaudio"
}

there's really nothing to indicate such behavior. i can do this on all installed mpd clients (gmpc, ncmpcpp, xfce4-mpc-plugin)

EDIT: manually reproducible by sending 2 pause commands to mpd via tcp

$ cat testX | nc localhost 6600
# test1
command_list_begin
pause
pause
command_list_end
# test2
pause
pause

Last edited by incertia (2016-05-15 22:02:20)

Offline

#4 2016-05-16 04:04:32

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd play/pause skipping

The only thing, that's a bit odd with your config is the mixing of software mixer and pulseaudio (which is in fact a software mixer), but I doubt this could lead to this behavior. I just tried it with spoken word tracks to be absolutely sure I am not missing it. But cannot reproduce.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2016-05-16 04:51:24

incertia
Member
Registered: 2014-10-25
Posts: 29

Re: mpd play/pause skipping

welp here's a demo of what i mean. might just be my setup, but hopefully this clarifies what i mean.

Offline

#6 2016-05-16 12:07:38

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd play/pause skipping

ok, you are indeed right. It's just too hard to notice when not doing it at rapid speed. Probably worth a bug report at https://bugs.musicpd.org


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB