Skip to content

Commit

Permalink
Adding sound driver bugfix
Browse files Browse the repository at this point in the history
Technically, the catch-all check in zWriteFMIorII makes this redundant.
But, if all bugs of this sort are fixed, that check can be removed, as
it is in similar drivers.
  • Loading branch information
Clownacy committed Jun 15, 2015
1 parent 2f753f1 commit 0697889
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sound/Z80 Sound Driver.asm
Expand Up @@ -2286,7 +2286,12 @@ zSFXTrackInitLoop:
ld (ix+zTrack.VoicesLow), l ; Low byte of voice pointer
ld (ix+zTrack.VoicesHigh), h ; High byte of voice pointer
call zKeyOffIfActive ; Kill channel notes
call zFMClearSSGEGOps ; Clear SSG-EG operators for track's channels
if fix_sndbugs
bit 7, (ix+zTrack.VoiceControl) ; Is this an FM track?
call z, zFMClearSSGEGOps ; If so, clear SSG-EG operators for track's channels
else
call zFMClearSSGEGOps ; Clear SSG-EG operators for track's channels (even on PSG tracks!!!)
endif
pop hl ; Restore hl
pop bc ; Restore bc
djnz zSFXTrackInitLoop ; Loop for all SFX tracks
Expand Down

0 comments on commit 0697889

Please sign in to comment.