summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-01 15:14:10 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-01 15:14:10 +0000
commit975b596091422b2583ed6d5e0e56efeb4626dfac (patch)
tree9922f3217cb7ec9529b7dcf07dd7ccbd449b59e9 /libpcsxcore
parente83af47f7f7788533e2aaa2b3f9442c877ba7c33 (diff)
downloadpcsxr-975b596091422b2583ed6d5e0e56efeb4626dfac.tar.gz
hopkat
-cdrom-attenuation compat hack #2 (please remove later someday) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61684 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cdrom.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c
index a5622d53..dde1d50a 100644
--- a/libpcsxcore/cdrom.c
+++ b/libpcsxcore/cdrom.c
@@ -2112,7 +2112,11 @@ void cdrWrite3(unsigned char rt) {
#endif
// TODO: Use real attenuation (left - right mixer)
-
+#if 0
+ // write CD-XA volumes
+ SPU_writeRegister( H_CDLeft, cdleft );
+ SPU_writeRegister( H_CDRight, cdright );
+#else
/*
Eternal SPU: scale volume from [0-ffff] -> [0,8000]
- Destruction Derby Raw - movies (ff00 ff00)
@@ -2137,12 +2141,17 @@ void cdrWrite3(unsigned char rt) {
if( l1 == 0x80 ) { l2 = 0; }
if( r1 == 0x80 ) { r2 = 0; }
+ // spu compat hack #2
+ if( l1 >= 0x80 ) { l1 = 0x7f; }
+ if( r1 >= 0x80 ) { r1 = 0x7f; }
+
cdleft = (l1 << 8) | l2;
cdright = (r1 << 8) | r2;
// write CD-XA volumes
SPU_writeRegister( H_CDLeft, cdleft );
SPU_writeRegister( H_CDRight, cdright );
+#endif
}