summaryrefslogtreecommitdiff
path: root/libpcsxcore/r3000a.c
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-02-04 03:24:09 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-02-04 03:24:09 +0000
commit5f0189ef278ebb7ef9fd4e08fff8728449bf6b6f (patch)
tree956e2a3efa31441ca01f65ec2a636fe0f541db95 /libpcsxcore/r3000a.c
parent5f93c7a7b5acd5e1ae9fedd91e3c316f92d519c0 (diff)
Experimental patches
1- cdrom.c Remove IRQ clear - read reschedule Fix xa streaming timing (ex. Final Fantasy Tactics) 2- cdrom.c BIOS music player - init attenuators 3- r3000a.c Set spu async to ~10 apu cycle updates Correct Square sound effects Disabled by default git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@62890 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/r3000a.c')
-rw-r--r--libpcsxcore/r3000a.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/libpcsxcore/r3000a.c b/libpcsxcore/r3000a.c
index 1422d52f..d5616cbe 100644
--- a/libpcsxcore/r3000a.c
+++ b/libpcsxcore/r3000a.c
@@ -123,6 +123,29 @@ void psxBranchTest() {
}
}
+#if 0
+ if( SPU_async )
+ {
+ static int init;
+ int elapsed;
+
+ if( init == 0 ) {
+ // 10 apu cycles
+ // - Final Fantasy Tactics (distorted - dropped sound effects)
+ psxRegs.intCycle[PSXINT_SPUASYNC].cycle = PSXCLK / 44100 * 10;
+
+ init = 1;
+ }
+
+ elapsed = psxRegs.cycle - psxRegs.intCycle[PSXINT_SPUASYNC].sCycle;
+ if (elapsed >= psxRegs.intCycle[PSXINT_SPUASYNC].cycle) {
+ SPU_async( elapsed );
+
+ psxRegs.intCycle[PSXINT_SPUASYNC].sCycle = psxRegs.cycle;
+ }
+ }
+#endif
+
if ((psxRegs.cycle - psxNextsCounter) >= psxNextCounter)
psxRcntUpdate();