[][src]Struct vst::buffer::AudioBuffer

pub struct AudioBuffer<'a, T: 'a + Float> { /* fields omitted */ }

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]

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]

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]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.