Change out the examples

This commit is contained in:
Gwilym Inzani 2024-08-28 17:46:35 +01:00
parent fee2575cb7
commit d4a2d9357f
7 changed files with 4 additions and 6 deletions

View file

@ -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);

View file

@ -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();