summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/riff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/riff.c b/src/riff.c
index 233d2cb..898a2fc 100644
--- a/src/riff.c
+++ b/src/riff.c
@@ -257,10 +257,10 @@ error_io:
return;
}
-static int audio_drain(xas_riff *riff,
- void *samples,
- size_t count,
- xas_audio_stream *stream) {
+static ssize_t audio_drain(xas_riff *riff,
+ void *samples,
+ size_t count,
+ xas_audio_stream *stream) {
size_t len = count * stream->sample_size
* stream->channels;