pub struct ProcessingEnvironment {
pub sampling_rate: f32,
pub max_samples_per_process_call: usize,
pub channel_layout: ChannelLayout,
pub processing_mode: ProcessingMode,
}Expand description
Information about the processing environment that the processor will run in.
Fields§
§sampling_rate: f32The sample rate of the audio.
max_samples_per_process_call: usizeThe mazimum number of samples that will be passed to each call to process.
Note that fewer samples may be passed to process than this.
channel_layout: ChannelLayoutThe channel layout of the audio
processing_mode: ProcessingModeThe processing mode that the processor will run in.
Trait Implementations§
Source§impl Clone for ProcessingEnvironment
impl Clone for ProcessingEnvironment
Source§fn clone(&self) -> ProcessingEnvironment
fn clone(&self) -> ProcessingEnvironment
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 moreSource§impl Debug for ProcessingEnvironment
impl Debug for ProcessingEnvironment
Source§impl PartialEq for ProcessingEnvironment
impl PartialEq for ProcessingEnvironment
impl StructuralPartialEq for ProcessingEnvironment
Auto Trait Implementations§
impl Freeze for ProcessingEnvironment
impl RefUnwindSafe for ProcessingEnvironment
impl Send for ProcessingEnvironment
impl Sync for ProcessingEnvironment
impl Unpin for ProcessingEnvironment
impl UnwindSafe for ProcessingEnvironment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more