--- a/mpd2src/mpd2sc.cpp
+++ b/mpd2src/mpd2sc.cpp
@@ -238,28 +238,28 @@
if (g_quitrequest) {
return;
}
- iDriver->SendAudio(cp, iPacketBytes);
+ iDriver->SendAudio(cp, iPacketBytes, iPaused);
}
}
void PcmSender::TimerExpired()
{
iMutex.Wait();
-
+
+ const unsigned char *cp = m_audio->data((size_t)iPacketBytes);
+ if (cp == 0) {
+ static bool sigsent = false;
+ if (!sigsent) {
+ LOGDEB("PcmSender::TimerExpired: killing myself\n");
+ kill(getpid(), SIGUSR1);
+ sigsent = true;
+ }
+ } else {
+ iDriver->SendAudio(cp, iPacketBytes, iPaused);
+ }
+
if (!iPaused) {
TUint64 now = OsTimeInUs(iEnv.OsCtx());
-
- const unsigned char *cp = m_audio->data((size_t)iPacketBytes);
- if (cp == 0) {
- static bool sigsent = false;
- if (!sigsent) {
- LOGDEB("PcmSender::TimerExpired: killing myself\n");
- kill(getpid(), SIGUSR1);
- sigsent = true;
- }
- } else {
- iDriver->SendAudio(cp, iPacketBytes);
- }
if (!iPaced) {
// Means we're doing blocking reads on the source, and