[−][src]Struct vst::buffer::AudioBuffer
AudioBuffer
contains references to the audio buffers for all input and output channels.
To create an AudioBuffer
in a host, use a HostBuffer
.
Implementations
impl<'a, T: 'a + Float> AudioBuffer<'a, T>
[src]
pub unsafe fn from_raw(
input_count: usize,
output_count: usize,
inputs_raw: *const *const T,
outputs_raw: *mut *mut T,
samples: usize
) -> Self
[src]
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.
pub fn input_count(&self) -> usize
[src]
The number of input channels that this buffer was created for
pub fn output_count(&self) -> usize
[src]
The number of output channels that this buffer was created for
pub fn samples(&self) -> usize
[src]
The number of samples in this buffer (same for all channels)
pub fn split<'b>(&'b mut self) -> (Inputs<'b, T>, Outputs<'b, T>) where
'a: 'b,
[src]
'a: 'b,
Split this buffer into separate inputs and outputs.
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]);
[src]
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]);
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,
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,