Skip to contentSkip to conversation

ld10k1: init_live update

PATCH New Mikael Magnusson 1 participant 1 message Apr 11, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ld10k1: init_live update

init_live update:

* Added IEC958 Optical Raw Playback
* Changed to mono switches saving GPRs
* Renamed controls to match the Audigy driver closer.
* switch_2x2.asm: Switch 2 x 2 channels
* mono_switch_2.asm: Mono Switch 2 channels
* mono_switch_2x2.asm: Mono Switch 2 x 2 channels
* prologic.asm: LFE output added

diffstat output:

ld10k1/setup/effects/Makefile.am  |    6
setup/effects/mono_switch_2.asm   |   14 +
setup/effects/mono_switch_2x2.asm |   33 ++
setup/effects/prologic.asm        |    4
setup/effects/switch_2x2.asm      |   34 ++
setup/init_live.in                |  467 +++++++++++++++++++++++++-----------
6 files changed, 404 insertions(+), 154 deletions(-)
setup/effects/Makefile.am +4 -2
diff -u ld10k1/setup/effects/Makefile.am ld10k1/setup/effects/Makefile.am
@@ -2,13 +2,15 @@
 	simple.asm vol_master.asm tone.asm \
 	vol_2.asm output.asm switch_2.asm \
 	sto51.asm switch_6.asm copy_2.asm \
-	prologic.asm fxbus.asm
+	prologic.asm fxbus.asm switch_2x2.asm \
+	mono_switch_2.asm mono_switch_2x2.asm
 
 
 dist_effects_DATA = simple.emu10k1 vol_master.emu10k1 tone.emu10k1 \
 	vol_2.emu10k1 output.emu10k1 switch_2.emu10k1 \
 	sto51.emu10k1 switch_6.emu10k1 copy_2.emu10k1 \
-	prologic.emu10k1 fxbus.emu10k1
+	prologic.emu10k1 fxbus.emu10k1 switch_2x2.emu10k1 \
+	mono_switch_2.emu10k1 mono_switch_2x2.emu10k1
 
 MAINTAINERCLEANFILES = $(dist_effects_DATA)
 

only in patch2:
unchanged:

setup/effects/mono_switch_2.asm +14 -0
@@ -0,0 +1,14 @@
+;PZU
+;;; Mikael Magnusson
+
+    name "Mono Switch 2 channels"
+    include "emu_constants.asm"
+    
+Left	IO
+Right	IO
+
+switch control 0,0,1
+
+    macints Left, C_0, Left, switch
+    macints Right, C_0, Right, switch
+    end

only in patch2:
unchanged:

setup/effects/mono_switch_2x2.asm +33 -0
@@ -0,0 +1,33 @@
+; Mikael Magnusson
+    name "Mono Switch 2 x 2 channels"
+    include "emu_constants.asm"
+    
+Left0	IO
+Right0	IO
+Left1	IO
+Right1	IO
+
+tmp0	dyn 1
+tmp1	dyn 1
+
+switch control 0,0,1
+
+switch1	macro	dst, src, sw
+	macints	dst, C_0, src, sw
+	endm
+
+switch_neg macro dst, src
+	andxor	dst, src, C_1, C_1
+	endm
+
+switch2 macro dst, src0, src1, sw
+	switch1 tmp0, src1, sw
+	switch_neg tmp1, sw
+	switch1 tmp1, src0, tmp1
+	acc3 dst, tmp0, tmp1, C_0	
+	endm
+
+	switch2 Left0, Left0, Left1, switch
+	switch2 Right0, Right0, Right1, switch
+
+	end

only in patch2:
unchanged:

setup/effects/prologic.asm +4 -0
@@ -38,6 +38,7 @@
 Ls		io
 Rs		io
 C		io			; Center
+LFE		io			; LFE
 
 ;----------------------------------------
 tmp		dyn
@@ -111,5 +112,8 @@
 	sub	R, Rt, read		; R = R - rear
 	sub	L, Lt, read  		; L = L - rear
 
+	add	LFE, Lt, Rt		; tmp = Lt + Rt
+	lpf	LFE, mhp, tmp		; LFE = LowPass((n)Hz, tmp)
+
 	end
 ;========================================

only in patch2:
unchanged:

setup/effects/switch_2x2.asm +34 -0
@@ -0,0 +1,34 @@
+; Mikael Magnusson
+    name "Switch 2 - 2 channels"
+    include "emu_constants.asm"
+    
+Left0	IO
+Right0	IO
+Left1	IO
+Right1	IO
+
+tmp0	dyn 1
+tmp1	dyn 1
+
+switchL control 0,0,1
+switchR control 0,0,1
+
+switch	macro	dst, src, sw
+	macints	dst, C_0, src, sw
+	endm
+
+switch_neg macro dst, src
+	andxor	dst, src, C_1, C_1
+	endm
+
+switch2 macro dst, src0, src1, sw
+	switch tmp0, src1, sw
+	switch_neg tmp1, sw
+	switch tmp1, src0, tmp1
+	acc3 dst, tmp0, tmp1, C_0	
+	endm
+
+	switch2 Left0, Left0, Left1, switchL
+	switch2 Right0, Right0, Right1, switchR
+
+	end

only in patch2:
unchanged:

setup/init_live.in +315 -152

654 lines not on this page · raw message