Skip to content

Commit

Permalink
Don't reset the ring buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
iurienistor committed Jan 25, 2024
1 parent 456c476 commit 3035dd5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dsp/src/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ gkick_mixer_process(struct gkick_mixer *mixer,
continue;

if (!output->enabled || output->muted || mixer->solo != output->solo) {
ring_buffer_reset(output->ring_buffer);
output->play = false;
} else {
if (output->play)
Expand All @@ -106,15 +105,14 @@ gkick_mixer_process(struct gkick_mixer *mixer,
out[right_index] + offset,
size);
gkick_real leveler_val = ring_buffer_get_cur_data(output->ring_buffer);
ring_buffer_next(output->ring_buffer, size);

gkick_real limiter_val = (gkick_real)output->limiter / 1000000;
gkick_mixer_apply_limiter(out[left_index] + offset,
out[right_index] + offset,
size,
limiter_val);
gkick_mixer_set_leveler(mixer, i, leveler_val);
}
ring_buffer_next(output->ring_buffer, size);
}
}

Expand Down

0 comments on commit 3035dd5

Please sign in to comment.