14 releases

0.4.1 Jun 19, 2023
0.3.6 Oct 19, 2021
0.3.5 Mar 25, 2021
0.3.4 Jul 4, 2020
0.2.2 Nov 13, 2018

#346 in Audio

Download history 45/week @ 2023-12-18 55/week @ 2023-12-25 76/week @ 2024-01-01 143/week @ 2024-01-08 45/week @ 2024-01-15 17/week @ 2024-01-22 23/week @ 2024-01-29 53/week @ 2024-02-19 30/week @ 2024-02-26 38/week @ 2024-03-04 17/week @ 2024-03-11 24/week @ 2024-03-18 234/week @ 2024-04-01

281 downloads per month
Used in 2 crates (via magnum-opus)

BSL-1.0 license

3MB
60K SLoC

C 41K SLoC // 0.2% comments Shell 8K SLoC // 0.2% comments M4 7.5K SLoC // 0.2% comments Visual Studio Project 1K SLoC GNU Style Assembly 1K SLoC Rust 558 SLoC // 0.0% comments Automake 324 SLoC // 0.1% comments Perl 264 SLoC // 0.2% comments Visual Studio Solution 168 SLoC Python 77 SLoC // 0.2% comments Batch 20 SLoC

Contains (autotools obfuscated code, 510KB) opus/configure, (obscure autoconf code, 35KB) opus/configure.ac

opusic-sys

Rust Crates.io Documentation

Bindings to libopus

Target version 1.4

Setup

If the OPUS_LIB_DIR environment variable is set, it will be searched for the opus library. Otherwise, a static library will be built automatically.

Android build

When building for android, library requires presence of env variable ANDROID_NDK_HOME in order to supply cmake with toolchain file and correct target arch.

Re-generate bindings

The feature build-bindgen is used to generate bindings.

To use it set env variable LIBCLANG_PATH to directory that contains clang binaries

Requirements

  • cmake

Dependencies