Fix the examples

This commit is contained in:
Gwilym Kuiper 2022-12-09 22:34:16 +00:00
parent 390392a1d8
commit 6df06211c6
3 changed files with 0 additions and 4 deletions

View file

@ -43,7 +43,6 @@ fn main(mut gba: Gba) -> ! {
let mut mixer = gba.mixer.mixer(Frequency::Hz32768); let mut mixer = gba.mixer.mixer(Frequency::Hz32768);
mixer.enable(); mixer.enable();
let _interrupt = mixer.setup_interrupt_handler();
let mut channel = SoundChannel::new(CRAZY_GLUE); let mut channel = SoundChannel::new(CRAZY_GLUE);
channel.stereo(); channel.stereo();

View file

@ -51,6 +51,5 @@ fn main(mut gba: Gba) -> ! {
mixer.frame(); mixer.frame();
vblank_provider.wait_for_vblank(); vblank_provider.wait_for_vblank();
mixer.after_vblank();
} }
} }

View file

@ -32,7 +32,6 @@ fn main(mut gba: Gba) -> ! {
writeln!(&mut writer, "Let it in by Josh Woodward").unwrap(); writeln!(&mut writer, "Let it in by Josh Woodward").unwrap();
writer.commit(); writer.commit();
bg.commit(&mut vram); bg.commit(&mut vram);
@ -58,7 +57,6 @@ fn main(mut gba: Gba) -> ! {
bg.commit(&mut vram); bg.commit(&mut vram);
let before_mixing_cycles = timer.value(); let before_mixing_cycles = timer.value();
mixer.after_vblank();
mixer.frame(); mixer.frame();
let after_mixing_cycles = timer.value(); let after_mixing_cycles = timer.value();