pub struct VecAudioBuffer<SampleType> { /* private fields */ }
Expand description

An owned version of the interleaved buffer implementation. Can be converted onto an InterleavedAudioBuffer.

Implementations

Get an InterleavedAudioBuffer reference type out this VecAudioBuffer.

Trait Implementations

The type of samples within this buffer.
The number of channels in this buffer
The number of samples in this buffer
Get a slice to the internal data. Will not work with VST adapter Read more
Get a mutable slice to the internal data. Will not work with VST adapter Read more
Get a ref to an INPUT sample in this buffer. Read more
Get a mutable ref to an OUTPUT sample in this buffer Read more
Set an OUTPUT sample in this buffer
Unsafe, no bounds check - Get a ref to an INPUT sample in this buffer Read more
Unsafe, no bounds check - Get a mutable ref to an OUTPUT sample in this buffer Read more
Unsafe, no bounds check - Set an OUTPUT sample in this buffer Read more
Shortcut for .slice().chunks(num_channels)
Shortcut for .slice_mut().chunks_mut(num_channels) Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Create an empty buffer of this type
Resize the buffer to fit num_channels and num_samples
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.