Skip to content

discord-java/opus-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opus-java

Modular java binding for opus natives.

Artifacts

All artifacts are published to maven central.

Gradle

repositories {
    mavenCentral()
}

opus-java-api

version-image

Note: Replace %VERSION% with the version above.

This artifact only provides the interface to access the native opus libraries. It can be used without opus-java-natives by providing the library to OpusLibrary.loadFrom(String) using an absolute path.

Gradle

dependencies {
    implementation("club.minnced:opus-java-api:%VERSION%")
}

Maven

<dependency>
    <groupId>club.minnced</groupId>
    <artifactId>opus-java-api</artifactId>
    <version>%VERSION%</version>
</dependency>

opus-java-natives

version-image

Note: Replace %VERSION% with the version above.

This artifact only provides the native opus libraries as resources.
The libraries are located under /natives and can be loaded at runtime.

Gradle

dependencies {
    implementation("club.minnced:opus-java-natives:%VERSION%")
}

Maven

<dependency>
    <groupId>club.minnced</groupId>
    <artifactId>opus-java-natives</artifactId>
    <version>%VERSION%</version>
</dependency>

opus-java

version-image

Note: Replace %VERSION% with the version above.

This artifact depends on api and natives while not providing any other features. This can be used if you want all features of this binding.

Gradle

dependencies {
    implementation("club.minnced:opus-java:%VERSION%")
}

Maven

<dependency>
    <groupId>club.minnced</groupId>
    <artifactId>opus-java</artifactId>
    <version>%VERSION%</version>
</dependency>