From 327da2f843a2000e325c2d8f173a6e59a2add9b6 Mon Sep 17 00:00:00 2001 From: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Date: Fri, 21 Aug 2026 19:28:33 -0400 Subject: [PATCH] fix(Windows64): SoundEngine starting abit late --- Minecraft.Client/Minecraft.cpp | 3 ++- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp index 3fd2d1e4..85935974 100644 --- a/Minecraft.Client/Minecraft.cpp +++ b/Minecraft.Client/Minecraft.cpp @@ -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. // 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); #endif diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index dd81bb57..37c5506f 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -1034,6 +1034,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, hr = XuiTimersRun(); } #endif + //str1k3r - moved here from Minecraft.cpp so the SoundEngine starts faster + pMinecraft->soundEngine->init(NULL); + MSG msg = {0}; while( WM_QUIT != msg.message ) {