https://github.com/doumanash/opusic-sys
Rust bindings to libopus
https://github.com/doumanash/opusic-sys
opus
Last synced: 2 months ago
JSON representation
Rust bindings to libopus
- Host: GitHub
- URL: https://github.com/doumanash/opusic-sys
- Owner: DoumanAsh
- License: other
- Created: 2018-11-12T18:50:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-21T13:21:43.000Z (5 months ago)
- Last Synced: 2025-03-30T09:08:46.432Z (3 months ago)
- Topics: opus
- Language: C
- Size: 9.95 MB
- Stars: 12
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opusic-sys
[](https://github.com/DoumanAsh/opusic-sys/actions/workflows/rust.yml)
[](https://crates.io/crates/opusic-sys)
[](https://docs.rs/crate/opusic-sys/)Bindings to [libopus](https://github.com/xiph/opus)
Target version [1.5.2](https://github.com/xiph/opus/releases/tag/v1.5.2)
This crate has the same license requirements as C source code.
All modifications to the source code are described in [opus.patch](https://github.com/DoumanAsh/opusic-sys/blob/master/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