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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user