Update the examples to correctly use the new API

This commit is contained in:
GBA bot 2022-01-02 21:48:05 +00:00
parent 6277eaeaee
commit f62501a748
2 changed files with 4 additions and 2 deletions

View file

@ -51,7 +51,8 @@ fn main() -> ! {
}
}
mixer.frame();
vblank_provider.wait_for_vblank();
mixer.vblank();
mixer.after_vblank();
}
}

View file

@ -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);