From 5f0189ef278ebb7ef9fd4e08fff8728449bf6b6f Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Fri, 4 Feb 2011 03:24:09 +0000 Subject: 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 --- libpcsxcore/r3000a.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'libpcsxcore/r3000a.c') 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(); -- cgit v1.2.3