Switch to unified view

a/sc2src/sc2mpd.cpp b/sc2src/sc2mpd.cpp
...
...
176
}
176
}
177
177
178
void OhmReceiverDriver::Started()
178
void OhmReceiverDriver::Started()
179
{
179
{
180
    LOGDEB("=== STARTED ====\n");
180
    LOGDEB("=== STARTED ====\n");
181
    system("/etc/hbm10/audio-ctrl.sh start ohreceiver");
181
}
182
}
182
183
183
void OhmReceiverDriver::Connected()
184
void OhmReceiverDriver::Connected()
184
{
185
{
185
    m_obs.reset();
186
    m_obs.reset();
...
...
189
}
190
}
190
191
191
void OhmReceiverDriver::Playing()
192
void OhmReceiverDriver::Playing()
192
{
193
{
193
    LOGDEB("=== PLAYING ====\n");
194
    LOGDEB("=== PLAYING ====\n");
195
    system("/etc/hbm10/audio-ctrl.sh play ohreceiver");
194
}
196
}
195
197
196
void OhmReceiverDriver::Disconnected()
198
void OhmReceiverDriver::Disconnected()
197
{
199
{
198
    LOGDEB("=== DISCONNECTED ====\n");
200
    LOGDEB("=== DISCONNECTED ====\n");
199
}
201
}
200
202
201
void OhmReceiverDriver::Stopped()
203
void OhmReceiverDriver::Stopped()
202
{
204
{
203
    LOGDEB("=== STOPPED ====\n");
205
    LOGDEB("=== STOPPED ====\n");
206
    system("/etc/hbm10/audio-ctrl.sh stop ohreceiver");
204
}
207
}
205
208
206
// Debug and stats only, not needed for main function
209
// Debug and stats only, not needed for main function
207
void OhmReceiverDriver::Observer::process(OhmMsgAudio& aMsg)
210
void OhmReceiverDriver::Observer::process(OhmMsgAudio& aMsg)
208
{
211
{