Compare commits

...

2 commits

Author SHA1 Message Date
lif 2a45bd6e10 6bit soundbias 2024-01-14 02:50:45 -08:00
lif 98ccf0b5e9 cut some notes early 2024-01-14 02:02:39 -08:00
2 changed files with 1734 additions and 2038 deletions

3765
lsdpack.s

File diff suppressed because it is too large Load diff

View file

@ -315,6 +315,7 @@ impl Lsdpack {
} }
NextBank => { /* lol */ } NextBank => { /* lol */ }
AmpDecPu0 => { AmpDecPu0 => {
// https://github.com/LIJI32/SameBoy/blob/27b5935b8d0e0af988bcac8e55e92703af24f335/Core/apu.c#L341
let base = TONE1_PATTERN.read(); let base = TONE1_PATTERN.read();
TONE1_PATTERN.write( TONE1_PATTERN.write(
base.with_volume(0) base.with_volume(0)
@ -436,6 +437,12 @@ extern "C" fn main() -> ! {
.with_enabled(true), .with_enabled(true),
); );
SOUNDBIAS.write(
SoundBias::new()
.with_bias_level(0x100)
.with_sample_cycle(SampleCycle::_6bit),
);
unsafe { unsafe {
LSDJ_SONGS.play_song(0); LSDJ_SONGS.play_song(0);
} }