Android wrapper for libopusenc, used to create Ogg files in with Opus frames.
  • C 95.9%
  • Shell 1.8%
  • Makefile 1.2%
  • M4 0.3%
  • CMake 0.2%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Benoit Marty 9d0b82e828
Merge pull request #9 from element-hq/bma/version1.1.2
Make sure the library can be used by Element Classic and prepare release 1.1.2
2026-02-03 09:56:43 +01:00
gradle/wrapper Migrate to Maven Central: 2025-06-04 11:17:29 +02:00
opusencoder Revert "Make sure the generated native libraries are 16kb aligned. Fixes #7" 2026-02-03 09:48:44 +01:00
.gitignore Git ignore .idea folder 2022-07-07 18:11:23 +02:00
build.gradle Downgrade Kotlin to 1.9.24, to make the library compatible with Element Classic. 2026-02-03 09:49:27 +01:00
gradle.properties Prepare release 1.1.2 2026-02-03 09:49:38 +01:00
gradlew Initial commit 2022-07-04 16:09:29 +02:00
gradlew.bat Initial commit 2022-07-04 16:09:29 +02:00
LICENSE Initial commit 2022-07-04 16:09:29 +02:00
README.md Update README.md 2022-07-07 18:13:26 +02:00
settings.gradle Initial commit 2022-07-04 16:09:29 +02:00

OpusEncoder

Android wrapper for libopusenc, used to create Ogg files in with Opus frames.

How to integrate it in your application

Just add the following gradle dependency:

implementation "io.element.android:opusencoder:$version"

How to build

The project is prepared to be built by using:

./gradlew assembleRelease 

If you want to provide prebuilt libraries for libopus and libopusenc, you just need to add them to opusencoder/src/main/cpp/opus/prebuilt_libs under folders for each supported architecture and setting opusencoder/build.gradle as:

externalNativeBuild {
    cmake {
        arguments "-DUSE_PREBUILTS=true"
    }
}

This is disabled by default, meaning both libopus and libopusenc will be built from source.