From d3f69997b1e78265fb04a34656a4921bdced7692 Mon Sep 17 00:00:00 2001 From: oddMLan Date: Thu, 28 Nov 2019 17:17:19 -0700 Subject: [PATCH 1/2] [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 --- Source/Project64-audio/AudioMain.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Project64-audio/AudioMain.cpp b/Source/Project64-audio/AudioMain.cpp index d27782027..e02f07ae4 100644 --- a/Source/Project64-audio/AudioMain.cpp +++ b/Source/Project64-audio/AudioMain.cpp @@ -58,9 +58,7 @@ void PluginInit(void) SetupTrace(); SetupAudioSettings(); StartTrace(); -#ifdef _WIN32 - SetTimerResolution(); -#endif + //SetTimerResolution(); g_PluginInit = true; } @@ -224,6 +222,9 @@ EXPORT int32_t CALL InitiateAudio(AUDIO_INFO Audio_Info) g_SoundDriver->AI_Shutdown(); delete g_SoundDriver; } +#ifdef _WIN32 + SetTimerResolution(); +#endif g_AudioInfo = Audio_Info; #ifdef _WIN32 g_SoundDriver = new DirectSoundDriver; From 5f3a7c288eb167a7869f240baaed8f74aa40ebfb Mon Sep 17 00:00:00 2001 From: oddMLan Date: Thu, 28 Nov 2019 17:18:10 -0700 Subject: [PATCH 2/2] Update .gitignore Ignore git.properties generated after compilation --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index bb8b5980b..28bf983c2 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ Thumbs.db /.vs +/git.properties /Bin/Debug /Bin/Debug64 /Bin/Package