Crate opusic_c

Crate opusic_c 

Source
Expand description

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.

Re-exports§

pub use opusic_sys as sys;

Modules§

dred
DRED decoder
multistream
The multistream API allows individual Opus streams to be combined into a single packet, enabling support for up to 255 channels
repacketizer
Opus packet manipulation
utils
Utility functions

Structs§

Decoder
OPUS Decoder
Encoder
OPUS encoder

Enums§

Application
Coding mode
Bandwidth
The available bandwidth level settings.
Bitrate
Codec’s bitrate configuration
Channels
Number of channels
ErrorCode
Underlying libopus error codes
FrameDuration
Frame duration configuration values
InbandFec
Possible values of inband forward error correction configuration.
SampleRate
Possible sample rates to use
Signal
Signal type

Functions§

frame_bytes_size
Computes OPUS frame size in bytes for specified duration
version
Returns libopus version