mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Remove is_done check in for loop
This commit is contained in:
parent
f4779208e3
commit
57f0a8c889
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue