• 4

    posted a message on [RESOLVED] OpenAL Failed to Initialize - Minecraft starts in Silent Mode

    Hello. After scouring the internet, google, bing, forums, reddit, literally everything you could think of I decided to write this post.
    Before you write any basic help suggestions I'll tell you I tried every miracle fix available out there.

    Since OpenAL fails to initialize the game is not in Volume Mixer, and either way volume is set to 75% at all times for all apps anyway.
    I tried hitting F3+T, resources reloaded and output console showed me exactly what I seen on start up. OpenAL Failed to Initialize.
    Tried setting mipmaps in settings. Still nothing.
    Removed everything. Reinstalled the game. Downloaded Java nad all libraries and 1.12.2 again. Still no sound.
    Rebooted, restarted, even reinstalled my sound drivers twice.

    I am just about to give up on this and stop playing Minecraft all together until 1.13 is released. Why? Because apparently it uses LWJGL 3.1.2, which apparently has working sound believe it or not. Meanwhile 1.12.2 which uses LWJGL 2.9.4 Nightly has issues with loading OpenAL.
    In tags I set that it happens on Vanilla but I Might have as well set it happens on Optifine and Forge versions as well.

    Now most important fact I note is that 1.12 for some unearthly reason uses 2.9.4 Nightly. A version of Lightweight Java Game Libraries that is by all means "unstable" or otherwise "can cause problems"

    I put the log output for the error below. I'm pretty sure LWJGL is to blame here but I'm open to suggestions. If anyone has any idea how to fix this please share it.

    [23:01:25] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [23:01:25] [Thread-3/INFO]: Initializing LWJGL OpenAL
    [23:01:25] [Thread-3/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [23:01:25] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL'
    [23:01:25] [Thread-3/ERROR]: Unable to initialize OpenAL.  Probable cause: OpenAL not supported.
    [23:01:25] [Thread-3/WARN]: ERROR MESSAGE:
    [23:01:25] [Thread-3/INFO]: Could not locate OpenAL library.
    [23:01:25] [Thread-3/WARN]: STACK TRACE:
    [23:01:25] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156)
    [23:01:25] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102)
    [23:01:25] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206)
    [23:01:25] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    [23:01:25] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    [23:01:25] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    [23:01:25] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
    [23:01:25] [Sound Library Loader/WARN]: ERROR MESSAGE:
    [23:01:25] [Sound Library Loader/INFO]: Could not locate OpenAL library.
    [23:01:25] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [23:01:26] [Thread-5/INFO]: Switching to No Sound
    [23:01:26] [Thread-5/INFO]: (Silent Mode)
    [23:01:26] [Sound Library Loader/INFO]: Sound engine started


    UPDATE: I made a small research and noted that 1.8 release of Minecraft uses LWJGL 2.9.1
    Alas sound works properly in there.

    UPDATE 2: After a long and monotonous game of trial and error I finally managed to fix it!
    Using a advanced logger I found out Java would first look into default game folder for OpenAL64.dll
    In my case it was "C:\MyGames\Minecraft\profiles\Default\OpenAL64.dll" <= this path.
    If it didn't find it it would attempt to grab the file from natives. But the OpenAL64.dll in there is faulty and causes it to not initialize!
    So, I went ahead and grabbed OpenAL.dll from 1.13 native libraries, renamed it to OpenAL64.dll (because it obviously was a 64bit version alongside OpenAL32.dll) and dropped it into the exact folder from the path above.
    Alas it worked! I have functioning sound in Minecraft 1.12.2 and it appeared in Volume Mixer!

    If anyone has that issue, definitely try that fix! You'll have to download 1.13 pre-release first but it's worth the short wait.

    Just go to "%appdata%\.minecraft\libraries\org\lwjgl\lwjgl-openal\3.1.2" and open "lwjgl-openal-3.1.2-natives-windows.jar" with 7zip or winrar.
    Then copy out OpenAL.dll, rename it to OpenAL64.dll and drop it into the folder you use for your game! It's going to be same as Game Directory in the launcher.

    Posted in: Java Edition Support
  • To post a comment, please .