Skip to content

Commit

Permalink
delay() should return a signed integer, duh.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Mar 26, 2016
1 parent a29a049 commit 71ed15b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 71ed15b

Please sign in to comment.