mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
22 lines
427 B
Rust
22 lines
427 B
Rust
|
#![no_std]
|
||
|
#![no_main]
|
||
|
|
||
|
use agb::sound::mixer::Frequency;
|
||
|
use agb::Gba;
|
||
|
use agb_tracker::{import_xm, Track};
|
||
|
|
||
|
const AJOJ: Track = import_xm!("examples/ajoj.xm");
|
||
|
|
||
|
#[agb::entry]
|
||
|
fn main(mut gba: Gba) -> ! {
|
||
|
let vblank_provider = agb::interrupt::VBlank::get();
|
||
|
|
||
|
let mut mixer = gba.mixer.mixer(Frequency::Hz18157);
|
||
|
mixer.enable();
|
||
|
|
||
|
loop {
|
||
|
mixer.frame();
|
||
|
vblank_provider.wait_for_vblank();
|
||
|
}
|
||
|
}
|