16 releases

0.5.5 Jan 21, 2025
0.5.4 Dec 14, 2024
0.5.2 Nov 23, 2024
0.5.0 May 11, 2024
0.2.2 Nov 13, 2018

#488 in Audio

Download history 119/week @ 2025-01-11 143/week @ 2025-01-18 177/week @ 2025-01-25 155/week @ 2025-02-01 1031/week @ 2025-02-08 220/week @ 2025-02-15 493/week @ 2025-02-22 405/week @ 2025-03-01 135/week @ 2025-03-08 136/week @ 2025-03-15 122/week @ 2025-03-22 322/week @ 2025-03-29 551/week @ 2025-04-05 244/week @ 2025-04-12 256/week @ 2025-04-19 115/week @ 2025-04-26

1,303 downloads per month
Used in 7 crates (3 directly)

BSD-3-Clause

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 651 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

This crate has the same license requirements as C source code.

All modifications to the source code are described in opus.patch

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 corresponding CMake's generator

Dependencies