From 2a45bd6e100594192dbc459a6d4b860ac9419b6e Mon Sep 17 00:00:00 2001 From: lif <> Date: Sun, 14 Jan 2024 02:50:45 -0800 Subject: [PATCH] 6bit soundbias --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index a5c6b5d..a365ae0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -315,6 +315,7 @@ impl Lsdpack { } NextBank => { /* lol */ } AmpDecPu0 => { + // https://github.com/LIJI32/SameBoy/blob/27b5935b8d0e0af988bcac8e55e92703af24f335/Core/apu.c#L341 let base = TONE1_PATTERN.read(); TONE1_PATTERN.write( base.with_volume(0) @@ -436,6 +437,12 @@ extern "C" fn main() -> ! { .with_enabled(true), ); + SOUNDBIAS.write( + SoundBias::new() + .with_bias_level(0x100) + .with_sample_cycle(SampleCycle::_6bit), + ); + unsafe { LSDJ_SONGS.play_song(0); }