i2s_fill_buffer: Need to fill with zeros when stopping
This commit is contained in:
parent
cfd8288dfa
commit
873a300d02
|
@ -75,7 +75,7 @@ static void i2s_fill_buffer(i2s_t *self) {
|
|||
int16_t signed_samples[STACK_BUFFER_SIZE / sizeof(int16_t)];
|
||||
mp_printf(&mp_plat_print, "playing=%d paused=%d stopping=%d sample@%p sample_data=%p..%p\n", self->playing, self->paused, self->stopping, self->sample, self->sample_data, self->sample_end);
|
||||
|
||||
if (!self->playing || self->paused || !self->sample) {
|
||||
if (!self->playing || self->paused || !self->sample || self->stopping) {
|
||||
memset(signed_samples, 0, sizeof(signed_samples));
|
||||
|
||||
size_t bytes_written = 0;
|
||||
|
|
Loading…
Reference in New Issue