Switch to side-by-side view
--- a/mpd2src/mpd2sc.cpp +++ b/mpd2src/mpd2sc.cpp @@ -379,6 +379,14 @@ #else iDriver->SendAudio(cp, iPacketBytes); #endif + } else if (nread == -1 && eos) { + // The audio stream was paused and no data could be read from the + // audio source anymore. To notify the receivers, send an empty audio + // message with the halt flag set. +#ifdef HAVE_SENDAUDIO_PAUSE_FLAG + LOGDEB("PcmSender::Send empty audio message\n"); + iDriver->SendAudio(cp, 0, eos); +#endif } if (!eos && !g_quitrequest) {