pub struct Header {
pub channels: u8,
pub pre_skip: u16,
pub output_gain: i16,
}
Fields§
§channels: u8
Number of channels
pre_skip: u16
Number of samples to discard from the decoder output when starting playback
output_gain: i16
Encoded gain to be applied when decoding. To decode into an amplitude scaling factor,
compute 10.0.powf(f32::from(output_gain)/(20.0*256.0))
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more