Skip to content

Commit

Permalink
Adding a sound driver size optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Clownacy committed Dec 12, 2015
1 parent f29fe7a commit 1970719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s2.sounddriver.asm
Expand Up @@ -1320,11 +1320,14 @@ zResumeTrack:
jr z,+ ; Branch if not
bit 2,(ix+zTrack.PlaybackControl) ; Is SFX overriding track?
jr nz,+ ; Branch if not
if OptimiseDriver=0
; cfSetVoiceCont already does this
ld c,(ix+zTrack.AMSFMSPan) ; AMS/FMS/panning flags
ld a,(ix+zTrack.VoiceControl) ; Get voice control bits...
and 3 ; ... the FM portion of them
add a,0B4h ; Command to select AMS/FMS/panning register
rst zWriteFMIorII
endif
push bc ; Save bc
ld c,(ix+zTrack.VoiceIndex) ; Current track FM instrument
call cfSetVoiceCont
Expand Down

0 comments on commit 1970719

Please sign in to comment.