16 releases

0.5.1 Sep 12, 2024
0.5.0 May 11, 2024
0.4.1 Jun 19, 2023
0.3.6 Oct 19, 2021
0.2.2 Nov 13, 2018

#353 in Audio

Download history 125/week @ 2024-07-25 251/week @ 2024-08-01 221/week @ 2024-08-08 152/week @ 2024-08-15 150/week @ 2024-08-22 25/week @ 2024-08-29 47/week @ 2024-09-05 512/week @ 2024-09-12 437/week @ 2024-09-19 280/week @ 2024-09-26 72/week @ 2024-10-03 138/week @ 2024-10-10 87/week @ 2024-10-17 219/week @ 2024-10-24 207/week @ 2024-10-31 225/week @ 2024-11-07

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

BSL-1.0 license

21MB
595K SLoC

C 577K SLoC // 0.0% comments Shell 8K SLoC // 0.2% comments M4 7.5K SLoC // 0.2% comments GNU Style Assembly 1K SLoC Rust 641 SLoC // 0.0% comments Automake 418 SLoC // 0.1% comments Perl 264 SLoC // 0.2% comments Python 77 SLoC // 0.2% comments

Contains (autotools obfuscated code, 530KB) opus/configure, (obscure autoconf code, 41KB) opus/configure.ac

opusic-sys

Rust Crates.io Documentation

Bindings to libopus

Target version 1.5.2

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

Optional

  • ninja - When present, build script defaults to use this generator

Dependencies