JSE-API provides a collection of extended API for the JavaSound subsystem of the Java Platform.
All the API are in 2 classes: Audios and Midis.
They're effectively replacements for javax.sound.sampled.AudioSystem
and javax.sound.midi.MidiSystem
, with more useful methods implemented by the backing SPI providers.
- AudioResourceReader is an interface to load sampled audio from resources (with a
java.lang.ClassLoader
and a pathname string). - AudioCompressionWriter is an interface to write audio files with a
compression level
orquality
parameter. (range: 0 for lowest, 1 for highest, 32-bit float point) - FormatEncodingProvider is an interface to provide a "unified" or "standard" way to get or check which
javax.sound.sampled.AudioFormat.Encoding
andjavax.sound.sampled.AudioFileFormat.Type
are supported.
- MidiResourceReader is an interface to load midi audio from resources (with a
java.lang.ClassLoader
and a pathname string). - SoundbankResourceReader is an interface to load midi soundbank from resources (with a
java.lang.ClassLoader
and a pathname string).
<dependencies>
<dependency>
<groupId>io.github.jseproject</groupId>
<artifactId>jse-api</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
repositories {
mavenCentral()
}
dependencies {
implementation 'io.github.jseproject:jse-api:1.0.0'
}