From 71ed15b31e35996e9c3d40a234c2934e94a88326 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sat, 26 Mar 2016 21:34:33 +0000 Subject: [PATCH] delay() should return a signed integer, duh. --- audio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio.h b/audio.h index 359f3402..54b04e95 100644 --- a/audio.h +++ b/audio.h @@ -31,7 +31,8 @@ typedef struct { // returns the delay before the next frame to be sent to the device would actually be audible. // almost certainly wrong if the buffer is empty, so put silent buffers into it to make it busy. // will change dynamically, so keep watching it. Implemented in ALSA only. - uint32_t (*delay)(); + // returns -1 if there's a problem + int32_t (*delay)(); // may be NULL, in which case soft volume is applied void (*volume)(double vol);