From 6f2c1bc6161ad0a97afdce26639f4bf92eed6f7f Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 10 Dec 2022 00:00:36 +0000 Subject: [PATCH] Don't need to do the mod3_estimate here too --- agb/src/sound/mixer/sw_mixer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/sound/mixer/sw_mixer.rs b/agb/src/sound/mixer/sw_mixer.rs index 3aac9438..dc6b3629 100644 --- a/agb/src/sound/mixer/sw_mixer.rs +++ b/agb/src/sound/mixer/sw_mixer.rs @@ -337,7 +337,7 @@ const fn mod3_estimate(x: usize) -> usize { impl MixerBufferState { fn should_calculate(&self) -> bool { - mod3_estimate(self.active_buffer + 1) != mod3_estimate(self.playing_buffer) + mod3_estimate(self.active_buffer + 1) != self.playing_buffer } fn playing_advanced(&mut self) -> usize {