pub struct RawAudioSpec {
pub sample_rate: u32,
pub channels: usize,
pub sample_format: RawSampleFormat,
pub endianness: Endian,
pub start_offset: usize,
pub max_frames: Option<usize>,
}Expand description
Specification decsribing how to decode some raw audio samples.
Fields§
§sample_rate: u32The sample rate of the audio.
channels: usizeThe numbers of channels in the audio.
sample_format: RawSampleFormatThe format of the sample data.
endianness: EndianThe endianness of the samples.
start_offset: usizeThe byte offset at which to start reading samples.
max_frames: Option<usize>The maximum number of frames to read.
Trait Implementations§
Source§impl Clone for RawAudioSpec
impl Clone for RawAudioSpec
Source§fn clone(&self) -> RawAudioSpec
fn clone(&self) -> RawAudioSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RawAudioSpec
impl RefUnwindSafe for RawAudioSpec
impl Send for RawAudioSpec
impl Sync for RawAudioSpec
impl Unpin for RawAudioSpec
impl UnwindSafe for RawAudioSpec
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