summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-03 18:10:50 -0500
committerXANTRONIX Development2022-02-03 18:10:50 -0500
commite342eb1c2e0c75183491e36f14e36bc44faa60d0 (patch)
tree96971fc01909bc6d5393546279f9b0727069bb0c
parentc3ce5c1fdd5525c9618f0e4c24ef75349ec2ac4e (diff)
downloadxas-e342eb1c2e0c75183491e36f14e36bc44faa60d0.tar.gz
xas-e342eb1c2e0c75183491e36f14e36bc44faa60d0.tar.bz2
xas-e342eb1c2e0c75183491e36f14e36bc44faa60d0.zip
i'm a dingus cat :333
-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;