Struct nih_plug::audio_setup::BufferConfig
source · pub struct BufferConfig {
pub sample_rate: f32,
pub min_buffer_size: Option<u32>,
pub max_buffer_size: u32,
pub process_mode: ProcessMode,
}
Expand description
Configuration for (the host’s) audio buffers.
Fields§
§sample_rate: f32
The current sample rate.
min_buffer_size: Option<u32>
The minimum buffer size the host will use. This may not be set.
max_buffer_size: u32
The maximum buffer size the host will use. The plugin should be able to accept variable sized buffers up to this size, or between the minimum and the maximum buffer size if both are set.
process_mode: ProcessMode
The current processing mode. The host will reinitialize the plugin any time this changes.
Trait Implementations§
source§impl Clone for BufferConfig
impl Clone for BufferConfig
source§fn clone(&self) -> BufferConfig
fn clone(&self) -> BufferConfig
Returns a copy 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 BufferConfig
impl Debug for BufferConfig
source§impl PartialEq<BufferConfig> for BufferConfig
impl PartialEq<BufferConfig> for BufferConfig
source§fn eq(&self, other: &BufferConfig) -> bool
fn eq(&self, other: &BufferConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BufferConfig
impl StructuralPartialEq for BufferConfig
Auto Trait Implementations§
impl RefUnwindSafe for BufferConfig
impl Send for BufferConfig
impl Sync for BufferConfig
impl Unpin for BufferConfig
impl UnwindSafe for BufferConfig
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