mirror of
https://github.com/italicsjenga/agb.git
synced 2024-10-17 15:41:33 +11:00
19 lines
334 B
Rust
19 lines
334 B
Rust
#![no_std]
|
|
#![feature(start)]
|
|
|
|
extern crate gba;
|
|
|
|
use gba::sound;
|
|
|
|
#[start]
|
|
fn main(_argc: isize, _argv: *const *const u8) -> isize {
|
|
let mut gba = gba::Gba::new();
|
|
|
|
gba.sound.enable();
|
|
|
|
let sweep_settings = gba::sound::SweepSettings::new(3, false, 7);
|
|
gba.sound.channel1().play_sound(&sweep_settings);
|
|
|
|
loop {}
|
|
}
|