summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-30 22:38:48 +0000
committerSND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-30 22:38:48 +0000
commit89bacb3e8a81f8e53f846c3e1f7f11d34c7189aa (patch)
tree96aa02d4b728f0b6678a65bd246b666e09d3b4a2
parent40dc3ea56b4dc706dba00b33f7a61f367e3a55fe (diff)
downloadpcsxr-89bacb3e8a81f8e53f846c3e1f7f11d34c7189aa.tar.gz
hopkat
-dfsound- load lag,cdda smooth git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61643 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--libpcsxcore/cdrom.c1
-rw-r--r--plugins/dfsound/externals.h2
-rw-r--r--plugins/dfsound/freeze.c13
-rw-r--r--plugins/dfsound/spu.c6
4 files changed, 18 insertions, 4 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c
index dfec11c3..ae39ee19 100644
--- a/libpcsxcore/cdrom.c
+++ b/libpcsxcore/cdrom.c
@@ -1664,6 +1664,7 @@ void cdrWrite1(unsigned char rt) {
// Tomb Raider 2 - new game
+ // - no set_track (seekp - getlocp interfere)
//Set_Track();
Find_CurTrack();
diff --git a/plugins/dfsound/externals.h b/plugins/dfsound/externals.h
index 4966f2c0..3143c6df 100644
--- a/plugins/dfsound/externals.h
+++ b/plugins/dfsound/externals.h
@@ -75,7 +75,7 @@
// make sure this is bigger than cpu action - no glitchy
-#define INTERVAL_TIME 5000
+#define INTERVAL_TIME 4500
#define CPU_CLOCK 33868800
diff --git a/plugins/dfsound/freeze.c b/plugins/dfsound/freeze.c
index 9a5f142f..536c8cc1 100644
--- a/plugins/dfsound/freeze.c
+++ b/plugins/dfsound/freeze.c
@@ -160,6 +160,19 @@ long CALLBACK SPUfreeze(uint32_t ulFreezeMode,SPUFreeze_t * pF)
SetupTimer(); // start sound processing again
+ // stop load crackling
+ //cpu_cycles = 0;
+ //iCycle = 0;
+
+ // fix movie lag
+ CDDAEnd = CDDAStart + 44100;
+ CDDAPlay = CDDAStart;
+ CDDAFeed = CDDAStart;
+
+ XAPlay = XAStart;
+ XAFeed = XAStart;
+ XAEnd = XAStart + 44100;
+
return 1;
}
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c
index 9e9f1bbb..9521f6f0 100644
--- a/plugins/dfsound/spu.c
+++ b/plugins/dfsound/spu.c
@@ -1140,10 +1140,10 @@ void SetupStreams(void)
XAFeed = XAStart;
CDDAStart = // alloc cdda buffer
- (uint32_t *)malloc(16384 * sizeof(uint32_t));
- CDDAEnd = CDDAStart + 16384;
+ (uint32_t *)malloc(44100 * sizeof(uint32_t));
+ CDDAEnd = CDDAStart + 44100;
CDDAPlay = CDDAStart;
- CDDAFeed = CDDAStart + 1;
+ CDDAFeed = CDDAStart;
for(i=0;i<MAXCHAN;i++) // loop sound channels
{