File diff r24596:eddf98238034 → r24597:afde5721a3b6
src/music/win32_m.cpp
Show inline comments
 
@@ -404,13 +404,13 @@ const char *MusicDriver_Win32::Start(con
 

	
 
	midiOutReset(_midi.midi_out);
 

	
 
	/* prepare multimedia timer */
 
	TIMECAPS timecaps;
 
	if (timeGetDevCaps(&timecaps, sizeof(timecaps)) == MMSYSERR_NOERROR) {
 
		_midi.time_period = min(max((UINT)resolution, timecaps.wPeriodMin), timecaps.wPeriodMax);
 
		_midi.time_period = std::min(std::max((UINT)resolution, timecaps.wPeriodMin), timecaps.wPeriodMax);
 
		if (timeBeginPeriod(_midi.time_period) == MMSYSERR_NOERROR) {
 
			/* success */
 
			DEBUG(driver, 2, "Win32-MIDI: Start: timer resolution is %d", (int)_midi.time_period);
 
			return nullptr;
 
		}
 
	}