Merge pull request #1675 from oddMLan/pj64-audio-timerres-fix
[Audio] Move SetTimerResolution() to InitiateAudio
This commit is contained in:
commit
7254a80aed
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
/.vs
|
/.vs
|
||||||
|
/git.properties
|
||||||
/Bin/Debug
|
/Bin/Debug
|
||||||
/Bin/Debug64
|
/Bin/Debug64
|
||||||
/Bin/Package
|
/Bin/Package
|
||||||
|
|
|
@ -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