diff options
Diffstat (limited to 'plugins/dfsound')
| -rw-r--r-- | plugins/dfsound/externals.h | 13 | ||||
| -rw-r--r-- | plugins/dfsound/sdl.c | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/plugins/dfsound/externals.h b/plugins/dfsound/externals.h index 50c0f277..4966f2c0 100644 --- a/plugins/dfsound/externals.h +++ b/plugins/dfsound/externals.h @@ -59,7 +59,20 @@ #define NSSIZE 10
#define APU_CYCLES_UPDATE NSSIZE
+
+
+// update times
+#if 0
+// PEOPS DSound 1.09a - good sound cards
#define LATENCY 10
+#elif defined (_WINDOWS)
+// work on most cards
+#define LATENCY 25
+#else
+// work on most cards
+#define LATENCY 25
+#endif
+
// make sure this is bigger than cpu action - no glitchy
#define INTERVAL_TIME 5000
diff --git a/plugins/dfsound/sdl.c b/plugins/dfsound/sdl.c index 45ccba2d..06acd686 100644 --- a/plugins/dfsound/sdl.c +++ b/plugins/dfsound/sdl.c @@ -71,7 +71,7 @@ void SetupSound(void) { spec.freq = 44100; spec.format = AUDIO_S16SYS; spec.channels = iDisStereo ? 1 : 2; - spec.samples = 512; + spec.samples = 1024; spec.callback = SOUND_FillAudio; if (SDL_OpenAudio(&spec, NULL) < 0) { |
