summaryrefslogtreecommitdiff
path: root/shared-module/displayio/OnDiskBitmap.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-06-01 19:10:35 -0500
committerJeff Epler <jepler@gmail.com>2020-06-01 19:14:38 -0500
commit0722dafc2464b414e680fab700f3f84cd54879df (patch)
tree1e7eb3640e9aa5b220f0d95f62c698cef99959b0 /shared-module/displayio/OnDiskBitmap.c
parent47efd595fce11240f92efecf768800e8d81fa702 (diff)
audiomixer: Fix garbled playback when voice 0 is stopped, audio pops
There were two main problems - word_buffer was being filled as though with unsigned samples, but during mixing all samples are kept in signed mode - If the first buffer was stopped, the voices_active flag got set anyway, even though the output buffer wasn't initialized yet, so the samples were mixed with indeterminate data We also cover the case where no buffer was playing, and ensure the output buffer is filled. This now works much better. Tested on neotrellis m4 playing back 4 mp3 streams at a time in signed-16, 22050Hz
Diffstat (limited to 'shared-module/displayio/OnDiskBitmap.c')
0 files changed, 0 insertions, 0 deletions