Don't need to do the mod3_estimate here too

This commit is contained in:
Gwilym Kuiper 2022-12-10 00:00:36 +00:00
parent c031e9b002
commit 6f2c1bc616

View file

@ -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 {