PseudoStereo option in RMT player.

This commit is contained in:
Pecusx
2025-07-21 11:31:29 +02:00
parent 50ed25b8b2
commit f88e5f0bcb
2 changed files with 27 additions and 13 deletions
BIN
View File
Binary file not shown.
+27 -13
View File
@@ -30,6 +30,14 @@ TRACKS equ 8
.ELSE .ELSE
TRACKS equ 4 TRACKS equ 4
.ENDIF .ENDIF
; Message from Pecus:
; This is a new minor feature.
; It only works if STEREOMODE is set to 0
; It plays on the second POKEY all sounds delayed by one frame.
PSEUDOSTEREO equ 1 ; 0=off , 1=on
;* ;*
;*PLAYER equ $3400 ;*PLAYER equ $3400
;* ;*
@@ -1246,6 +1254,10 @@ rmt_p5
.ELSE .ELSE
lda #1 lda #1
.ENDIF .ENDIF
.IF PSEUDOSTEREO==1&&STEREOMODE==0
ldy #$10
bne SetPokey_OffsetY
.ENDIF
rts rts
SetPokey SetPokey
.IF STEREOMODE==1 ;* L1 L2 L3 L4 R1 R2 R3 R4 .IF STEREOMODE==1 ;* L1 L2 L3 L4 R1 R2 R3 R4
@@ -1286,23 +1298,25 @@ xstastx08 sta $d217
xstysta01 sty $d218 xstysta01 sty $d218
sta $d208 sta $d208
.ELSEIF STEREOMODE==0 ;* L1 L2 L3 L4 .ELSEIF STEREOMODE==0 ;* L1 L2 L3 L4
ldy v_audctl ldy #$00
SetPokey_OffsetY
lda trackn_audf+0 lda trackn_audf+0
ldx trackn_audc+0 sta $d200,y
sta $d200 lda trackn_audc+0
stx $d201 sta $d201,y
lda trackn_audf+1 lda trackn_audf+1
ldx trackn_audc+1 sta $d200+2,y
sta $d200+2 lda trackn_audc+1
stx $d201+2 sta $d201+2,y
lda trackn_audf+2 lda trackn_audf+2
ldx trackn_audc+2 sta $d200+4,y
sta $d200+4 lda trackn_audc+2
stx $d201+4 sta $d201+4,y
lda trackn_audf+3 lda trackn_audf+3
ldx trackn_audc+3 sta $d200+6,y
sta $d200+6 lda trackn_audc+3
stx $d201+6 sta $d201+6,y
ldy v_audctl
sty $d208 sty $d208
.ELSEIF STEREOMODE==2 ;* L1 R2 R3 L4 .ELSEIF STEREOMODE==2 ;* L1 R2 R3 L4
ldy v_audctl ldy v_audctl