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());
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue