HTTP stream from my MPD lags, i.e. audio from Pulse and HTTP output are not in sync, with HTTP output lagging Pulse. This also means that starting/pausing/stopping music from MPD is not reflected immediately on the HTTP stream.
Also, the perceived lag on HTTP stream keeps increasing with time. When I first start MPD, the lag is ~2sec, but this balloons to almost half a minute after playing continuously for an hour or so.
Following is the setup from my ~/.mpdconf
audio_output {
type "pulse"
name "My Pulse Output"
}
audio_output {
type "httpd"
name "My HTTP Stream"
encoder "vorbis" # optional, vorbis or lame
port "6601"
bind_to_address "any" # optional, IPv4 or IPv6
# quality "5.0" # do not define if bitrate is defined
bitrate "128" # do not define if quality is defined
format "44100:16:1"
# max_clients "0" # optional 0=no limit
always_on "yes"
}