pub struct PluginAudioConfiguration {
pub sample_rate: f64,
pub min_frames_count: u32,
pub max_frames_count: u32,
}Expand description
The audio configuration passed to a plugin’s audio processor upon activation.
Those settings are constant throughout the audio processor’s lifetime, i.e. from a plugin’s activation until its deactivation.
Fields§
§sample_rate: f64The audio’s sample rate.
min_frames_count: u32The minimum amount of frames that will be processed at once.
max_frames_count: u32The maximum amount of frames that will be processed at once.
Implementations§
Source§impl PluginAudioConfiguration
impl PluginAudioConfiguration
Sourcepub fn validate(&self)
pub fn validate(&self)
Validates this PluginAudioConfiguration.
§Panics
This function will panic if either min_frames_count or max_frames_count is 0, or if
min_frames_count is greater than max_frames_count.
Trait Implementations§
Source§impl Clone for PluginAudioConfiguration
impl Clone for PluginAudioConfiguration
Source§fn clone(&self) -> PluginAudioConfiguration
fn clone(&self) -> PluginAudioConfiguration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PluginAudioConfiguration
Source§impl Debug for PluginAudioConfiguration
impl Debug for PluginAudioConfiguration
Source§impl PartialEq for PluginAudioConfiguration
impl PartialEq for PluginAudioConfiguration
impl StructuralPartialEq for PluginAudioConfiguration
Auto Trait Implementations§
impl Freeze for PluginAudioConfiguration
impl RefUnwindSafe for PluginAudioConfiguration
impl Send for PluginAudioConfiguration
impl Sync for PluginAudioConfiguration
impl Unpin for PluginAudioConfiguration
impl UnsafeUnpin for PluginAudioConfiguration
impl UnwindSafe for PluginAudioConfiguration
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