예제 #1
0
파일: player.php 프로젝트: dermidgen/moode
function mpdQueueAddMultiple($sock, $songs)
{
    $commands = array();
    foreach ($songs as $song) {
        array_push($commands, 'add "' . html_entity_decode($song) . '"');
    }
    return chainMpdCommands($sock, $commands);
}
예제 #2
0
function enqueueAll($sock, $json)
{
    $commands = array();
    foreach ($json as $song) {
        $path = $song["file"];
        array_push($commands, "add \"" . html_entity_decode($path) . "\"");
    }
    chainMpdCommands($sock, $commands);
}