From 4731f0049c58e98e286d1b9fb349b07b37ecb930 Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Thu, 30 Dec 2010 02:11:41 +0000 Subject: hopkat -dfsound- try adjust output buffer quality (test) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61592 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfsound/externals.h | 13 +++++++++++++ plugins/dfsound/sdl.c | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'plugins') 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) { -- cgit v1.2.3