From f62501a748d203a44e10b3baea6cb6e1d5a04c6b Mon Sep 17 00:00:00 2001 From: GBA bot Date: Sun, 2 Jan 2022 21:48:05 +0000 Subject: [PATCH] Update the examples to correctly use the new API --- agb/examples/mixer_basic.rs | 3 ++- agb/examples/stereo_sound.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);