diff options
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 { |
