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