mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Change out the examples
This commit is contained in:
parent
fee2575cb7
commit
d4a2d9357f
Binary file not shown.
|
@ -7,8 +7,7 @@ use agb::sound::mixer::Frequency;
|
|||
use agb::Gba;
|
||||
use agb_tracker::{include_xm, Track, Tracker};
|
||||
|
||||
// Found on: https://modarchive.org/index.php?request=view_by_moduleid&query=36662
|
||||
static DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
|
||||
static SPECTRUM: Track = include_xm!("examples/tracks/peak_and_drozerix_-_spectrum.xm");
|
||||
|
||||
#[agb::entry]
|
||||
fn main(mut gba: Gba) -> ! {
|
||||
|
@ -17,7 +16,7 @@ fn main(mut gba: Gba) -> ! {
|
|||
let mut mixer = gba.mixer.mixer(Frequency::Hz32768);
|
||||
mixer.enable();
|
||||
|
||||
let mut tracker = Tracker::new(&DB_TOFFE);
|
||||
let mut tracker = Tracker::new(&SPECTRUM);
|
||||
|
||||
loop {
|
||||
tracker.step(&mut mixer);
|
||||
|
|
Binary file not shown.
|
@ -7,8 +7,7 @@ use agb::sound::mixer::Frequency;
|
|||
use agb::Gba;
|
||||
use agb_tracker::{include_xm, Track, Tracker};
|
||||
|
||||
// Found on: https://modarchive.org/index.php?request=view_by_moduleid&query=36662
|
||||
static DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
|
||||
static SPECTRUM: Track = include_xm!("examples/tracks/peak_and_drozerix_-_spectrum.xm");
|
||||
|
||||
#[agb::entry]
|
||||
fn main(mut gba: Gba) -> ! {
|
||||
|
@ -23,7 +22,7 @@ fn main(mut gba: Gba) -> ! {
|
|||
let mut mixer = gba.mixer.mixer(Frequency::Hz32768);
|
||||
mixer.enable();
|
||||
|
||||
let mut tracker = Tracker::new(&DB_TOFFE);
|
||||
let mut tracker = Tracker::new(&SPECTRUM);
|
||||
|
||||
loop {
|
||||
let before_mixing_cycles_high = timer2.value();
|
||||
|
|
Binary file not shown.
BIN
tracker/agb-tracker/examples/tracks/kokesz_-_natural.xm
Normal file
BIN
tracker/agb-tracker/examples/tracks/kokesz_-_natural.xm
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue