diff --git a/agb/src/sound/mixer/sw_mixer.rs b/agb/src/sound/mixer/sw_mixer.rs index 21bd0d0c..917b6657 100644 --- a/agb/src/sound/mixer/sw_mixer.rs +++ b/agb/src/sound/mixer/sw_mixer.rs @@ -538,11 +538,11 @@ impl MixerBuffer { (false, true) => call_mono_fn!(agb_rs__mixer_add_mono_loop), (true, false) => { call_mono_fn!(agb_rs__mixer_add_mono_first); - channel.is_done = channel.pos > channel_len; + channel.is_done = channel.pos >= channel_len; } (false, false) => { call_mono_fn!(agb_rs__mixer_add_mono); - channel.is_done = channel.pos > channel_len; + channel.is_done = channel.pos >= channel_len; } } }