From 62c178f326a3eb07a08e946afb3c6d4de48c51c3 Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 14 Apr 2008 20:14:32 +0000 Subject: (svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista --- src/sound/win32_s.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sound/win32_s.cpp b/src/sound/win32_s.cpp index 2cc45d689..386c6f4a5 100644 --- a/src/sound/win32_s.cpp +++ b/src/sound/win32_s.cpp @@ -59,7 +59,7 @@ const char *SoundDriver_Win32::Start(const char* const* parm) wfex.nBlockAlign = (wfex.nChannels * wfex.wBitsPerSample) / 8; wfex.nAvgBytesPerSec = wfex.nSamplesPerSec * wfex.nBlockAlign; - _bufsize = GetDriverParamInt(parm, "bufsize", 2048); + _bufsize = GetDriverParamInt(parm, "bufsize", (GB(GetVersion(), 0, 8) > 5) ? 2048 : 1024); if (waveOutOpen(&_waveout, WAVE_MAPPER, &wfex, (DWORD_PTR)&waveOutProc, 0, CALLBACK_FUNCTION) != MMSYSERR_NOERROR) return "waveOutOpen failed"; -- cgit v1.2.3-70-g09d2