--- a/sc2src/sc2mpd.cpp
+++ b/sc2src/sc2mpd.cpp
@@ -178,6 +178,7 @@
void OhmReceiverDriver::Started()
{
LOGDEB("=== STARTED ====\n");
+ system("/etc/hbm10/audio-ctrl.sh start ohreceiver");
}
void OhmReceiverDriver::Connected()
@@ -191,6 +192,7 @@
void OhmReceiverDriver::Playing()
{
LOGDEB("=== PLAYING ====\n");
+ system("/etc/hbm10/audio-ctrl.sh play ohreceiver");
}
void OhmReceiverDriver::Disconnected()
@@ -201,6 +203,7 @@
void OhmReceiverDriver::Stopped()
{
LOGDEB("=== STOPPED ====\n");
+ system("/etc/hbm10/audio-ctrl.sh stop ohreceiver");
}
// Debug and stats only, not needed for main function