Skip to content

Commit f4753dc

Browse files
committed
Apply Z80_Clock constant to the pcmLoopCounter macro.
1 parent de65332 commit f4753dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s1.sounddriver.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SMPS_SPECIAL_SFX_PSG_TRACK_COUNT = (SMPS_RAM.v_spcsfx_psg_tracks_end-SMPS_RAM.v_
1818
; ---------------------------------------------------------------------------
1919
; Macros
2020
; turn a sample rate into a djnz loop counter
21-
pcmLoopCounterBase function sampleRate,baseCycles, 1+(53693175/15/(sampleRate)-(baseCycles)+(13/2))/13
21+
pcmLoopCounterBase function sampleRate,baseCycles, 1+(Z80_Clock/(sampleRate)-(baseCycles)+(13/2))/13
2222
pcmLoopCounter function sampleRate, pcmLoopCounterBase(sampleRate,90) ; 90 is the number of cycles zPlaySEGAPCMLoop takes to deliver one sample.
2323
dpcmLoopCounter function sampleRate, pcmLoopCounterBase(sampleRate,301/2) ; 301 is the number of cycles zPlayPCMLoop takes to deliver two samples.
2424
; ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)