From 473d6e1d506cb6e0ac3c763871c5c8f9e4395ae5 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 2 Mar 2025 21:21:56 -0500 Subject: Sample loading and conversion. --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 8ae139b..6ad1421 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,6 +20,12 @@ fn main() -> Result<(), itfile::Error> { }?;*/ match itfile::load("/home/chrisoft/Music/mods/nb_tear of the sun.it") { Ok(f) => { + for s in &f.samps { + let converted = s.convert_samples(); + for v in converted { + std::io::Write::write(&mut std::io::stderr(), &v.to_le_bytes()).unwrap(); + } + } let player = player::BasePlayer::new(&f); player::Player::play(&player); Ok(()) -- cgit v1.2.3