From 16afa85cf3e66369939b686eeafe10213479c5b2 Mon Sep 17 00:00:00 2001 From: Andrew Cook Date: Tue, 28 Mar 2023 12:18:29 +1100 Subject: [PATCH] Fixes #837 ...i think --- audio/engine.asm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/audio/engine.asm b/audio/engine.asm index 763a75e9be..5ac30b6ecb 100644 --- a/audio/engine.asm +++ b/audio/engine.asm @@ -1205,7 +1205,7 @@ GetNoiseSample: swap a ; non-rest note? and $f - ret z + jr z, .rest ; use 'pitch' to seek noise sample set ld e, a ld d, 0 @@ -1222,6 +1222,12 @@ GetNoiseSample: ld [wNoiseSampleDelay], a ret +.rest + ld hl, wChannel1NoteFlags - wChannel1 + add hl, bc + set NOTE_REST, [hl] + ret + MusicCommands: ; entries correspond to audio constants (see macros/scripts/audio.asm) table_width 2, MusicCommands