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 Mar 28, 2023
1 parent 926008e commit 16afa85
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 @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 16afa85

Please sign in to comment.