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
sourceimpl<'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>ⓘNotable traits for AudioBufferIterator<'a, 'b, T>impl<'a, 'b, T> Iterator for AudioBufferIterator<'a, 'b, T> where
T: 'b + Float, type Item = (&'b [T], &'b mut [T]);
pub fn zip<'b>(&'b mut self) -> AudioBufferIterator<'a, 'b, T>ⓘNotable traits for AudioBufferIterator<'a, 'b, T>impl<'a, 'b, T> Iterator for AudioBufferIterator<'a, 'b, T> where
T: 'b + Float, type Item = (&'b [T], &'b mut [T]);
T: 'b + Float, type Item = (&'b [T], &'b mut [T]);
Create an iterator over pairs of input buffers and output buffers.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for AudioBuffer<'a, T> where
T: RefUnwindSafe,
impl<'a, T> !Send for AudioBuffer<'a, T>
impl<'a, T> !Sync for AudioBuffer<'a, T>
impl<'a, T> Unpin for AudioBuffer<'a, T>
impl<'a, T> !UnwindSafe for AudioBuffer<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more