Struct vst::buffer::AudioBuffer
source · pub struct AudioBuffer<'a, T: 'a + Float> { /* private fields */ }
Expand description
AudioBuffer
contains references to the audio buffers for all input and output channels.
To create an AudioBuffer
in a host, use a HostBuffer
.
Implementations§
source§impl<'a, T: 'a + Float> AudioBuffer<'a, T>
impl<'a, T: 'a + Float> AudioBuffer<'a, T>
sourcepub unsafe fn from_raw(
input_count: usize,
output_count: usize,
inputs_raw: *const *const T,
outputs_raw: *mut *mut T,
samples: usize
) -> Self
pub unsafe fn from_raw(
input_count: usize,
output_count: usize,
inputs_raw: *const *const T,
outputs_raw: *mut *mut T,
samples: usize
) -> Self
Create an AudioBuffer
from raw pointers.
Only really useful for interacting with the VST API.
sourcepub fn input_count(&self) -> usize
pub fn input_count(&self) -> usize
The number of input channels that this buffer was created for
sourcepub fn output_count(&self) -> usize
pub fn output_count(&self) -> usize
The number of output channels that this buffer was created for
sourcepub fn split<'b>(&'b mut self) -> (Inputs<'b, T>, Outputs<'b, T>)where
'a: 'b,
pub fn split<'b>(&'b mut self) -> (Inputs<'b, T>, Outputs<'b, T>)where
'a: 'b,
Split this buffer into separate inputs and outputs.
sourcepub fn zip<'b>(&'b mut self) -> AudioBufferIterator<'a, 'b, T> ⓘ
pub fn zip<'b>(&'b mut self) -> AudioBufferIterator<'a, 'b, T> ⓘ
Create an iterator over pairs of input buffers and output buffers.