Compare commits
2 commits
17f20d2b39
...
2a45bd6e10
Author | SHA1 | Date | |
---|---|---|---|
2a45bd6e10 | |||
98ccf0b5e9 |
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue