On Tue, Dec 15, 2015 at 21:30:00 +0100, Max Kellermann wrote: > On 2015/10/27 03:40, Ben Boeckel <[email protected]> wrote: > > Some clients act weird in the face of silence and buffer it rather thay > > "playing" it. This causes severe lag when the stream is unpaused. > > There are other clients which time out when not getting any data. > (All audio streaming software sucks (and that includes MPD). No > matter what you do, at least one program breaks.)
Agreed. The thing is that when the playlist ends or is cleared (even if immediately populated, but that may be a client thing and the protocol really is clear/populate in separate steps), all clients quit anyways, so I have to protect against it no matter what for such "always-on" players. > Though I find it surprising to buffer silence. I don't want to > support software that is so obviously broken. A streaming client > should not care if it's silence or music that's being received - just > play what you get, damnit! Well, I'm not 100% sure it is buffering, but it does act weird (the message mpv outputs is "[cache] Cache is not responding - slow/stuck network connection?"). I'll try to do some more digging in to what happens, but mplayer had similar behavior with respect to the silence stream, so it is likely deep in the historical baggage, maybe even FFmpeg. Maybe MPD is not sending proper timestamps with the silence (for an OGG stream; I don't use others to know for those)? > > + <row> > > + <entry> > > + <varname>play_silence</varname> > > + <parameter>PS</parameter> > > + </entry> > > + <entry> > > + If <literal>true</literal>, silence will be played > > + while the stream is paused. > > + </entry> > > + </row> > > I don't like the option's name, because it's hard to understand what > it does. Hmm. How about "play_silence_when_paused". Too long? "_on_pause"? No "play_"? > Your documentation describes only what it does when configured "yes", > which is the old behavior - but it does not describe the new behavior > at all! What does it do when "no" is configured? And what's the > default? Thanks, will add more to it when I get the chance. --Ben _______________________________________________ mpd-devel mailing list [email protected] http://mailman.blarg.de/listinfo/mpd-devel
