Add MP3 sound support via JLayer decoding

- build.gradle: add javazoom:jlayer:1.0.1 dependency (bundled via include())
- Mp3Decoder: new utility class that decodes MP3 to WAV using JLayer
- SplashSound: detect .mp3 files in config dir, decode to .wav for the dynamic resource pack
- Default .ogg still works; place a .mp3 file in config/justasplash/ for MP3 playback
This commit is contained in:
SashegDev
2026-06-08 13:25:21 +00:00
parent aecbde98b0
commit 3c261db111
3 changed files with 120 additions and 8 deletions
+3
View File
@@ -35,6 +35,9 @@ dependencies {
modImplementation("com.github.usefulness:webp-imageio:0.10.2")
include("com.github.usefulness:webp-imageio:0.10.2")
modImplementation("javazoom:jlayer:1.0.1")
include("javazoom:jlayer:1.0.1")
}
loom {