Changeset - r8936:938338e11dc3
[Not reviewed]
master
0 1 0
glx - 17 years ago 2008-04-14 20:14:32
glx@openttd.org
(svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/sound/win32_s.cpp
Show inline comments
 
@@ -59,7 +59,7 @@ const char *SoundDriver_Win32::Start(con
 
	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";
0 comments (0 inline, 0 general)