sad

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

commit 1f6170c6c0716160903dc180bfe5db36bdcdf436
parent f5302aeb98727e1e29f9134ff7c35e87d7a32196
Author: sin <sin@2f30.org>
Date:   Sat, 27 Dec 2014 00:08:04 +0000

Add some more diagnostics

Diffstat:
Mcmd.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cmd.c b/cmd.c @@ -63,6 +63,8 @@ cmdnext(int fd, char *arg) next = getnextsong(); next->state = PREPARE; putcursong(next); + printf("Playing song %s with %d\n", + s->path, s->id); dprintf(fd, "OK\n"); } @@ -137,7 +139,7 @@ cmdplay(int fd, char *arg) s->state = PREPARE; putcursong(s); - printf("Song %s with %d playing\n", + printf("Playing song %s with %d\n", s->path, s->id); } @@ -165,6 +167,8 @@ cmdprev(int fd, char *arg) prev = getprevsong(); prev->state = PREPARE; putcursong(prev); + printf("Playing song %s with %d\n", + s->path, s->id); dprintf(fd, "OK\n"); }