fix(Windows64): SoundEngine starting abit late
This commit is contained in:
1 parent
5845c6ce26
commit
327da2f843
2 files changed
+5
-1
No files matched your search
@@ -224,7 +224,8 @@ Minecraft::Minecraft(Component *mouseComponent, Canvas *parent, MinecraftApplet
|
|||||||
|
|
||||||
// 4J-PB - Removed it from here on Orbis due to it causing a crash with the network init.
|
// 4J-PB - Removed it from here on Orbis due to it causing a crash with the network init.
|
||||||
// We should work out why...
|
// We should work out why...
|
||||||
#ifndef __ORBIS__
|
//str1k3r - removed on Windows64 as the SoundEngine was starting really late
|
||||||
|
#if !(defined __ORBIS__ || _WINDOWS64)
|
||||||
this->soundEngine->init(NULL);
|
this->soundEngine->init(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1034,6 +1034,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
|||||||
hr = XuiTimersRun();
|
hr = XuiTimersRun();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
//str1k3r - moved here from Minecraft.cpp so the SoundEngine starts faster
|
||||||
|
pMinecraft->soundEngine->init(NULL);
|
||||||
|
|
||||||
MSG msg = {0};
|
MSG msg = {0};
|
||||||
while( WM_QUIT != msg.message )
|
while( WM_QUIT != msg.message )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user