From c863b94f493e4981b828e41a89b1452c06527291 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 5 Jun 2024 10:32:38 +0100 Subject: [PATCH] Hello world for desktop player --- Cargo.toml | 3 ++- tracker/agb-tracker/src/mixer.rs | 2 +- tracker/desktop-player/Cargo.toml | 15 +++++++++++++++ tracker/desktop-player/src/main.rs | 3 +++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tracker/desktop-player/Cargo.toml create mode 100644 tracker/desktop-player/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index af29369a..00c40828 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ members = [ # "tracker/agb-tracker", "tracker/agb-xm", "tracker/agb-xm-core", + "tracker/desktop-player", "tools", @@ -27,7 +28,7 @@ members = [ "emulator/mgba-sys", "emulator/test-runner", "emulator/screenshot-generator", - "website/backtrace", + "website/backtrace", "tracker/desktop-player", ] exclude = [ diff --git a/tracker/agb-tracker/src/mixer.rs b/tracker/agb-tracker/src/mixer.rs index 18860f0a..45871cc4 100644 --- a/tracker/agb-tracker/src/mixer.rs +++ b/tracker/agb-tracker/src/mixer.rs @@ -1,6 +1,6 @@ #![allow(missing_docs)] -use agb::fixnum::Num; +use agb_fixnum::Num; pub trait SoundChannel { fn new(data: &'static [u8]) -> Self; diff --git a/tracker/desktop-player/Cargo.toml b/tracker/desktop-player/Cargo.toml new file mode 100644 index 00000000..c1303ea7 --- /dev/null +++ b/tracker/desktop-player/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "desktop-player" +version = "0.1.0" +edition = "2021" +authors = ["Gwilym Inzani "] +license = "MPL-2.0" +description = "A way to play XM files on desktop as they would on the gba without needing a test ROM" +repository = "https://github.com/agbrs/agb" + +[dependencies] +agb_xm_core = { version = "0.20.2", path = "../agb-xm-core" } +agb_tracker = { version = "0.20.2", path = "../agb-tracker", default-features = false } +agb_fixnum = { version = "0.20.2", path = "../../agb-fixnum" } + +xmrs = "0.6" diff --git a/tracker/desktop-player/src/main.rs b/tracker/desktop-player/src/main.rs new file mode 100644 index 00000000..e7a11a96 --- /dev/null +++ b/tracker/desktop-player/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}