WARNING: THIS PROJECT IS NO LONGER MAINTAINED. MOVED TO: https://github.com/jseproject/jse-shim/
The stand-alone JavaSound framework core, ported from JDK. If you want to use the decoder/encoder (or third-party plugins) from JavaSound framework without include the whole java.desktop
module (e.g. play AudioInputStream
with OpenAL), you can include it to your project as a dependency.
Details of the port:
From BellSoft Liberica JDK 8
com.sun.media.sound
-> com.sun.media.sound
javax.sound
-> javax.sound
Removed all SecurityManager related and native-code related classes, and JavaSoundAudioClip.java
.
- Add the Maven Central repository (if not exist) to your build file:
repositories {
...
mavenCentral()
}
- Add the dependency:
dependencies {
...
runtimeOnly 'com.tianscar.javasound:javasound-core:1.0.0'
}
Note you need to download test audios here and put them to /src/test/java/resources to run the test code properly!