From e342eb1c2e0c75183491e36f14e36bc44faa60d0 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 3 Feb 2022 18:10:50 -0500 Subject: i'm a dingus cat :333 --- src/bank.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bank.c b/src/bank.c index 32a1da2..6070714 100644 --- a/src/bank.c +++ b/src/bank.c @@ -124,7 +124,9 @@ static ssize_t stream_fill(xas_bank *bank, xas_bank_stop(bank); } } else { - memset(ptr(stream, samples, index_o), '\0', left); + memset(ptr(stream, samples, index_o), + '\0', + left * stream->channels * stream->sample_size); index_o += left; left = 0; -- cgit v1.2.3