Merge pull request #1675 from oddMLan/pj64-audio-timerres-fix

[Audio] Move SetTimerResolution() to InitiateAudio
This commit is contained in:
zilmar 2019-11-29 12:17:36 +10:30 committed by GitHub
commit 7254a80aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -20,6 +20,7 @@
Thumbs.db
/.vs
/git.properties
/Bin/Debug
/Bin/Debug64
/Bin/Package

View File

@ -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;