Minecraft 1.12.2 + Optfine has sound.

Minecraft 1.12.2 + Forge does not have any sound. I have no idea how to fix it.

Tutorial on my website:
https://html.dynu.net/index.php/how-to- ... on-1-12-2/
Requirements:
Raspberry Pi 2B, 3B or 3A+
Update of OS and preparation for installation:
Update your Raspbian operating system to the latest version.
Code: Select all
sudo apt-get install update && sudo apt-get upgrade -y
Disable splashscreen, set GPU memory to 100 MB and if you are using a Raspberry Pi 2B, overclock to 1000 mhz (High).
Save the settings.
Open a new terminal window.
Code: Select all
sudo raspi-config
Reboot.
Testing to see if drivers are active:
Open a terminal window:
Code: Select all
sudo apt-get -y install libalut0 libalut-dev && sudo apt-get -y install mesa-utils
Code: Select all
glxgears
Glxgears should run around 60 fps. If you are getting hugely different values, try re-enabling the GL driver or test with the full KMS driver.
Downloading and installation of Minecraft:
Download:
Code: Select all
mkdir ~/Minecraft; mkdir ~/Minecraft/Natives; cd ~/Minecraft && wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
Code: Select all
cd ~/Minecraft && java -jar Minecraft.jar
Click ‘Edit profile’ and select the ‘1.12.2’ release.
Click save, and then play.
The game will output an error and crash. This is completely normal. Exit the launcher.
Downloading libraries:
Code: Select all
cd ~/Minecraft/Natives && wget https://www.dropbox.com/s/4oxcvz3ky7a3x6f/liblwjgl.so && wget https://www.dropbox.com/s/m0r8e01jg2og36z/libopenal.so
Code: Select all
cd ~/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209 && rm lwjgl-2.9.4-nightly-20150209.jar; wget https://www.dropbox.com/s/mj15sz3bub4dmr6/lwjgl-2.9.4-nightly-20150209.jar
Download Forge 14.23.4.2713 installer (This Forge version is specific, some versions don’t work): https://files.minecraftforge.net/
Download Optifine HD_U_C5(Same as Forge, only certain versions work.):
Code: Select all
cd ~/Downloads && wget https://www.dropbox.com/s/0mjy5btnyr7v75g/OptiFine_1.12.2_HD_U_C5.jar
Code: Select all
cd ~/Minecraft/ && wget https://www.dropbox.com/s/4aj6rr26p0kib0l/runOptifine1_12_2.sh && sudo chmod +x runOptifine1_12_2.sh
Save the file.
Install Optifine.
Code: Select all
cd ~/Downloads && java -jar OptiFine_1.12.2_HD_U_C5.jar
Code: Select all
cd ~/Minecraft && java -jar Minecraft.jar
To install Forge, skip to “Installing Forge” otherwise stay here if you want to only play Minecraft with Optifine (no other mods).
Run the runOptifine1_12_2.sh script:
Code: Select all
cd ~/Minecraft && ./runOptifine1_12_2.sh
Installing Forge(Optional):
Once again. Minecraft with Forge on Raspberry Pi does not output any sound.
Run the Forge Installer:
Code: Select all
cd ~/Downloads/ && java -jar forge-1.12.2-14.23.4.2713-installer.jar
Reopen the Minecraft launcher:
Code: Select all
cd ~/Minecraft && java -jar Minecraft.jar
Download the Forge script:
Code: Select all
cd ~/Minecraft/ && wget https://www.dropbox.com/s/eefleliwpyuwqk3/runForge1.12.sh && chmod +x runForge1.12.sh
Save.
Run Forge.
Code: Select all
cd ~/Minecraft/ && ./runForge1.12.sh
Hope you successfully installed Minecraft.
