From c3afb85af4b660268fe213ef533ec14697f527fe Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Fri, 17 Apr 2009 19:40:29 +0000 Subject: [PATCH] change buffer length/wanted latency in the dsound2 audio player to 80/4 (down from 100/5); should make it a bit more responsive Originally committed to SVN as r2812. --- aegisub/src/audio_player_dsound2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/audio_player_dsound2.cpp b/aegisub/src/audio_player_dsound2.cpp index 9bdf1f90b..7a40cb43e 100644 --- a/aegisub/src/audio_player_dsound2.cpp +++ b/aegisub/src/audio_player_dsound2.cpp @@ -159,8 +159,8 @@ unsigned int __stdcall DirectSoundPlayer2Thread::ThreadProc(void *parameter) } -#define WANTED_LATENCY 100 -#define BUFFER_LENGTH 5 +#define WANTED_LATENCY 80 +#define BUFFER_LENGTH 4 // The buffer will hold BUFFER_LENGTH times WANTED_LATENCY milliseconds of audio