--- a/mpd2src/mpd2sc.cpp
+++ b/mpd2src/mpd2sc.cpp
@@ -106,6 +106,7 @@
void Restart();
~PcmSender();
void busyRdWr();
+ TBool Paused();
private:
void CalculatePacketBytes();
@@ -211,6 +212,8 @@
pcmsender->PlayPause();
else if (strncmp("restart", buf, num_bytes) == 0)
pcmsender->Restart();
+ else if (strncmp("state", buf, num_bytes) == 0)
+ response = pcmsender->Paused() ? "Stopped" : "Playing";
else if (strncmp("enable", buf, num_bytes) == 0)
sender->SetEnabled(true);
else if (strncmp("disable", buf, num_bytes) == 0)
@@ -298,6 +301,11 @@
iMutex.Wait();
iIndex = 0;
iMutex.Signal();
+}
+
+TBool PcmSender::Paused()
+{
+ return (iPaused);
}
void PcmSender::CalculatePacketBytes()