Important note - I am writing a JVM Desktop application.
I've tried KorAU libs but the documentation lacks examples it always fails with the following error for me:
fun main() {
val file = File("path/that/exists.mp3")
runBlocking {
nativeSoundProvider.createSound(data=file.readBytes()).play()
}
}
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 4608 out of bounds for length 4608
I've tried to second guess other methods but I ended up with an AudioFormatException