[Audio] Move SetTimerResolution() to InitiateAudio
Enforces a timer of 1.0ms without conflicting with other plugins that might reset it unknowingly Fixes VI drop when changing settings in GLideN64
This commit is contained in:
parent
83ae43192f
commit
d3f69997b1
|
@ -58,9 +58,7 @@ void PluginInit(void)
|
||||||
SetupTrace();
|
SetupTrace();
|
||||||
SetupAudioSettings();
|
SetupAudioSettings();
|
||||||
StartTrace();
|
StartTrace();
|
||||||
#ifdef _WIN32
|
//SetTimerResolution();
|
||||||
SetTimerResolution();
|
|
||||||
#endif
|
|
||||||
g_PluginInit = true;
|
g_PluginInit = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,6 +222,9 @@ EXPORT int32_t CALL InitiateAudio(AUDIO_INFO Audio_Info)
|
||||||
g_SoundDriver->AI_Shutdown();
|
g_SoundDriver->AI_Shutdown();
|
||||||
delete g_SoundDriver;
|
delete g_SoundDriver;
|
||||||
}
|
}
|
||||||
|
#ifdef _WIN32
|
||||||
|
SetTimerResolution();
|
||||||
|
#endif
|
||||||
g_AudioInfo = Audio_Info;
|
g_AudioInfo = Audio_Info;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
g_SoundDriver = new DirectSoundDriver;
|
g_SoundDriver = new DirectSoundDriver;
|
||||||
|
|
Loading…
Reference in New Issue