From c5c552efb3516b516a7ea703687e2a55573c9ffd Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 2 Feb 2022 00:49:51 -0500 Subject: Ensure number of samples written is returned --- src/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio.c b/src/audio.c index 10f7a34..641bb93 100644 --- a/src/audio.c +++ b/src/audio.c @@ -167,7 +167,7 @@ ssize_t xas_audio_stream_write(xas_audio_stream *stream, } } - return 0; + return index_i; error_stream_drain: return -1; -- cgit v1.2.3