diff options
| author | SND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-12-30 22:38:48 +0000 |
|---|---|---|
| committer | SND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-12-30 22:38:48 +0000 |
| commit | 89bacb3e8a81f8e53f846c3e1f7f11d34c7189aa (patch) | |
| tree | 96aa02d4b728f0b6678a65bd246b666e09d3b4a2 /plugins | |
| parent | 40dc3ea56b4dc706dba00b33f7a61f367e3a55fe (diff) | |
| download | pcsxr-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
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dfsound/externals.h | 2 | ||||
| -rw-r--r-- | plugins/dfsound/freeze.c | 13 | ||||
| -rw-r--r-- | plugins/dfsound/spu.c | 6 |
3 files changed, 17 insertions, 4 deletions
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 { |
