Remove is_done check in for loop

This commit is contained in:
Gwilym Inzani 2023-06-27 21:49:30 +01:00
parent f4779208e3
commit 57f0a8c889

View file

@ -422,11 +422,7 @@ impl MixerBuffer {
) {
working_buffer.fill(0.into());
for channel in channels {
if channel.is_done {
continue;
}
for channel in channels.filter(|channel| !channel.is_done) {
let playback_speed = if channel.is_stereo {
2.into()
} else {