Don't need loop labels any more

This commit is contained in:
Gwilym Inzani 2023-07-16 20:56:05 +01:00
parent d929a1689a
commit c66f495cc7

View file

@ -481,13 +481,13 @@ impl MixerBuffer {
let mul_amount = let mul_amount =
((left_amount.to_raw() as i32) << 16) | (right_amount.to_raw() as i32 & 0x0000ffff); ((left_amount.to_raw() as i32) << 16) | (right_amount.to_raw() as i32 & 0x0000ffff);
'outer: for i in 0..self.frequency.buffer_size() { for i in 0..self.frequency.buffer_size() {
if channel.pos >= channel_len { if channel.pos >= channel_len {
if channel.should_loop { if channel.should_loop {
channel.pos -= channel_len; channel.pos -= channel_len;
} else { } else {
channel.is_done = true; channel.is_done = true;
break 'outer; break;
} }
} }