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()); working_buffer.fill(0.into());
for channel in channels { for channel in channels.filter(|channel| !channel.is_done) {
if channel.is_done {
continue;
}
let playback_speed = if channel.is_stereo { let playback_speed = if channel.is_stereo {
2.into() 2.into()
} else { } else {