sad

simple audio daemon
git clone git://git.2f30.org/sad
Log | Files | Refs | LICENSE

commit 9b18afe1d83984c90ba93b96d588d178edee4217
parent 5c6d9ba85b7cf974f4df397986f59e4bbdbe23f6
Author: sin <sin@2f30.org>
Date:   Fri, 26 Dec 2014 23:17:34 +0000

Update PROTOCOL

Diffstat:
MPROTOCOL | 34+++++++++++++++-------------------
1 file changed, 15 insertions(+), 19 deletions(-)

diff --git a/PROTOCOL b/PROTOCOL @@ -7,15 +7,13 @@ where PROTOCOLVERSION is of the form maj.min requests -------- -cmd [arg...] +cmd arg -If arguments contain spaces, they should be surrounded by double quotation marks. -Argument strings are separated from the command and any other arguments by linear -white-space (' ' or '\t'). +At the moment only single argument commands are supported. responses --------- -output + OK on success, ERR "descriptive error message" on error. +output + OK on success, ERR descriptive error message on error. commands -------- @@ -25,43 +23,41 @@ status -> state: play, stop or pause -> volume: 0-100 -> elapsed: total time elapsed within current song - -> duration: total song duration + -> duration: total song duration in seconds + -> random: 1 if random mode is set 0 otherwise + -> repeat: 1 if repeat mode is set 0 otherwise + -> single: 1 if single mode is set 0 otherwise + +random 0|1 + +repeat 0|1 + +single 0|1 volume 0-100 - -> OK or ERR next - -> OK or ERR pause 0|1 - -> OK or ERR play songid - -> OK or ERR previous - -> OK or ERR stop - -> OK or ERR add path - -> OK or ERR clear - -> OK or ERR delete songid - -> OK or ERR playlist - -> OK or ERR close - -> OK or ERR kill - -> OK or ERR ping - -> OK or ERR + +uptime