summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bank.c4
1 files changed, 3 insertions, 1 deletions
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;