mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Fix the examples
This commit is contained in:
parent
390392a1d8
commit
6df06211c6
|
@ -43,7 +43,6 @@ fn main(mut gba: Gba) -> ! {
|
|||
|
||||
let mut mixer = gba.mixer.mixer(Frequency::Hz32768);
|
||||
mixer.enable();
|
||||
let _interrupt = mixer.setup_interrupt_handler();
|
||||
|
||||
let mut channel = SoundChannel::new(CRAZY_GLUE);
|
||||
channel.stereo();
|
||||
|
|
|
@ -51,6 +51,5 @@ fn main(mut gba: Gba) -> ! {
|
|||
|
||||
mixer.frame();
|
||||
vblank_provider.wait_for_vblank();
|
||||
mixer.after_vblank();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ fn main(mut gba: Gba) -> ! {
|
|||
|
||||
writeln!(&mut writer, "Let it in by Josh Woodward").unwrap();
|
||||
|
||||
|
||||
writer.commit();
|
||||
|
||||
bg.commit(&mut vram);
|
||||
|
@ -58,7 +57,6 @@ fn main(mut gba: Gba) -> ! {
|
|||
bg.commit(&mut vram);
|
||||
|
||||
let before_mixing_cycles = timer.value();
|
||||
mixer.after_vblank();
|
||||
mixer.frame();
|
||||
let after_mixing_cycles = timer.value();
|
||||
|
||||
|
|
Loading…
Reference in a new issue