opusic-c

Crates.ioopusic-c
lib.rsopusic-c
version1.5.4
created_at2024-12-01 08:16:19.186332+00
updated_at2025-10-11 02:15:18.28564+00
descriptionHigh level bindings to libopus
homepage
repositoryhttps://github.com/DoumanAsh/opusic-c
max_upload_size
id1467274
size141,885
Douman (DoumanAsh)

documentation

README

opusic-c

Rust Crates.io Documentation

High level bindings to libopus

Target version 1.5.2

Allocator

This library uses Rust's allocator whenever possible

Features

  • bundled - Enables use of bundled OPUS code to build static library. Enabled by default. Refer to opusic-sys for details
  • dred - Enables experimental DRED decoder. Disabled by default.
  • osce - Enables OSCE. Disabled by default.
  • no-hardening - disable run-time checks that are cheap and safe for use in production. Disabled by default.
  • no-stack-protector = disable stack protection. Disabled by default.
  • no-fortify-source - disable protection against buffer overflows. Disabled by default.

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.

Requirements

  • cmake

Optional

  • ninja - When present, build script defaults to use corresponding CMake's generator
Commit count: 37

cargo fmt