pub struct ReadConfig {
pub start: Position,
pub stop: Position,
pub start_channel: Option<usize>,
pub num_channels: Option<usize>,
pub sample_rate: Option<u32>,
}Fields§
§start: PositionWhere to start reading audio (time or frame-based)
stop: PositionWhere to stop reading audio (time or frame-based)
start_channel: Option<usize>Starting channel to extract (0-indexed). None means start from channel 0.
num_channels: Option<usize>Number of channels to extract. None means extract all remaining channels.
sample_rate: Option<u32>If specified the audio will be resampled to the given sample rate
Trait Implementations§
Source§impl Default for ReadConfig
impl Default for ReadConfig
Source§fn default() -> ReadConfig
fn default() -> ReadConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadConfig
impl RefUnwindSafe for ReadConfig
impl Send for ReadConfig
impl Sync for ReadConfig
impl Unpin for ReadConfig
impl UnsafeUnpin for ReadConfig
impl UnwindSafe for ReadConfig
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