diff --git a/agb/examples/mixer_basic.rs b/agb/examples/mixer_basic.rs index 7fb68045..ed8d3cf6 100644 --- a/agb/examples/mixer_basic.rs +++ b/agb/examples/mixer_basic.rs @@ -51,7 +51,8 @@ fn main() -> ! { } } + mixer.frame(); vblank_provider.wait_for_vblank(); - mixer.vblank(); + mixer.after_vblank(); } } diff --git a/agb/examples/stereo_sound.rs b/agb/examples/stereo_sound.rs index f261d9ed..27f82015 100644 --- a/agb/examples/stereo_sound.rs +++ b/agb/examples/stereo_sound.rs @@ -29,7 +29,8 @@ fn main() -> ! { loop { vblank_provider.wait_for_vblank(); let before_mixing_cycles = timer.get_value(); - mixer.vblank(); + mixer.after_vblank(); + mixer.frame(); let after_mixing_cycles = timer.get_value(); frame_counter = frame_counter.wrapping_add(1);