[−][src]Module bae_rs::sample_format
Sample Format
Module containing different output formats like stereo, 2.1, 5.1, 7.1, etc.
Re-exports
pub use stereodata::*; |
Modules
stereodata | Stereo Data |
Traits
Panner | Trait implementing the ability to pan a monophonic sample into a ployphonic
sample. This is generic for the polyphonic type and the type that defines
how it is panned. To see an implementation, see
|
Functions
db_linear | Converts a decibel value to a linear gain value. This assumes that 0dB is unity gain, and ~-6bB is 0.5 gain |
linear_db | Converts a linear gain value to a decibel value. This assumes that 0dB is unity gain, and ~-6bB is 0.5 gain |
sample_from_i16 | Converts raw bytes to a Sample It is assumed that the bytes are 16-bit signed audio samples. |
sample_from_i24 | Converts raw bytes to a Sample It is assumed that the bytes are 24-bit signed audio samples. |
sample_from_u8 | Converts a raw bytes to a Sample It is assumed the bytes are 8-bit unsigned audio samples. |