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§

Create an AudioBuffer from raw pointers. Only really useful for interacting with the VST API.

The number of input channels that this buffer was created for

The number of output channels that this buffer was created for

The number of samples in this buffer (same for all channels)

Split this buffer into separate inputs and outputs.

Create an iterator over pairs of input buffers and output buffers.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.