Skip to content

Commit

Permalink
Fixes Rangi42#837
Browse files Browse the repository at this point in the history
...i think
  • Loading branch information
ariscop committed Apr 5, 2023
1 parent 0ef8578 commit 7ed483c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion audio/engine.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,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
Expand All @@ -1215,6 +1215,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
Expand Down

0 comments on commit 7ed483c

Please sign in to comment.