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