mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +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();
|
|
}
|
|
}
|