Struct audio_processor_traits::audio_buffer::vst::VSTAudioBuffer[][src]

pub struct VSTAudioBuffer<'a, SampleType> { /* fields omitted */ }
Expand description

Wraps a VST buffer with a generic AudioBuffer.

NOTE:

Due to Rust VST using different references for input & output buffers the API here is slightly dubious.

audio_buffer.get(channel, sample) will return a sample from the INPUT buffer. Meanwhile audio_buffer.get_mut(channel, sample) will return a sample from the OUTPUT buffer.

This means it might be that audio_buffer.get(channel, sample) is different to audio_buffer.get_mut(channel, sample).

Implementations

👎 Deprecated
👎 Deprecated

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

Shortcut for .slice().chunks(num_channels)

Shortcut for .slice_mut().chunks_mut(num_channels)

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

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

Performs the conversion.

Performs the conversion.

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.