function monitorMpdState($sock)
{
    if (sendMpdIdle($sock)) {
        $status = _parseStatusResponse(MpdStatus($sock));
        return $status;
    }
}
Beispiel #2
0
function monitorMpdState($sock)
{
    if ($change = sendMpdIdle($sock)) {
        $status = _parseStatusResponse(MpdStatus($sock));
        $status['changed'] = substr($change[1], 0, -3);
        // runelog('monitorMpdState()', $status);
        return $status;
    }
}