Update of /cvsroot/arcem/arcem/riscos-single
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26297/riscos-single
Modified Files:
soundbuf.s
Log Message:
riscos-single/soundbuf.s: Fix sound output when another SharedSound hanlder is
active + fix potential register corruption
Index: soundbuf.s
===================================================================
RCS file: /cvsroot/arcem/arcem/riscos-single/soundbuf.s,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- soundbuf.s 12 May 2012 17:34:51 -0000 1.3
+++ soundbuf.s 27 May 2017 20:23:05 -0000 1.4
@@ -112,11 +112,11 @@
mixloop:
AND R8,R4,R6 @ Pos to read from
LDR R14,[R1] @ dest data
- ADD R4,R4,#4 @ Increment out pos
+ ADD R4,R4,#2 @ Increment out pos
LDR R7,[R0,R8,LSL #1] @ Get input pair
SUBS R3,R3,#2
ADD R14,R14,R7 @ Mix in (no overflow checks!)
- STR R14,[R1],#2
+ STR R14,[R1],#4
@ Check for buffer ends
BLE mix_done
CMP R1,R2
@@ -129,9 +129,9 @@
copyloop:
AND R8,R4,R6 @ Pos to read from
- LDR R9,[R0,R8,LSL #1] @ Get input pair
+ LDR R14,[R0,R8,LSL #1] @ Get input pair
ADD R4,R4,#2 @ Increment out pos
- STR R9,[R1],#4
+ STR R14,[R1],#4
@ Check for buffer ends
SUBS R3,R3,#2
BLE zeroloop
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
arcem-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/arcem-cvs