sad

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

commit da6b880ba7bd2ab959aa45fc3159a1a0d15faeb6
parent 3b6386c62510a876b5f68e008438a0efb7a1b964
Author: sin <sin@2f30.org>
Date:   Fri Dec 26 18:23:43 +0000

play() should return number of bytes written

Diffstat:
sad.h | 2+-
sndio.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sad.h b/sad.h @@ -28,7 +28,7 @@ typedef struct { typedef struct { int (*vol)(int); int (*open)(int, int, int); - void (*play)(void *, size_t); + int (*play)(void *, size_t); int (*close)(void); } Output; diff --git a/sndio.c b/sndio.c @@ -67,10 +67,10 @@ err0: return -1; } -static void +static int sndioplay(void *buf, size_t size) { - sio_write(hdl, buf, size); + return sio_write(hdl, buf, size); } static int