agb/agb/examples/mixer_basic.rs

22 lines
474 B
Rust
Raw Normal View History

#![no_std]
#![no_main]
extern crate agb;
use agb::sound;
2021-06-06 19:54:59 +10:00
// Music - "I will not let you let me down" by Josh Woodward, free download at http://joshwoodward.com
const I_WILL_NOT_LET_YOU_LET_ME_DOWN: &'static [u8] =
include_bytes!("i-will-not-let-you-let-me-down.raw");
#[no_mangle]
pub fn main() -> ! {
let gba = agb::Gba::new();
let mixer = gba.mixer;
mixer.enable();
2021-06-06 20:19:45 +10:00
mixer.play_sound_starting_at(&I_WILL_NOT_LET_YOU_LET_ME_DOWN[0]);
loop {}
}