Struct audio_processor_traits::audio_buffer::InterleavedAudioBuffer [−][src]
pub struct InterleavedAudioBuffer<'a, SampleType> { /* fields omitted */ }
Expand description
An AudioBuffer that stores samples as interleaved frames, used for CPAL compatibility.
Example layout:
[ 0, 0, // <- left_sample, right_sample, …, ]
Implementations
Trait Implementations
type SampleType = SampleType
type SampleType = SampleType
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 fn get_unchecked_mut(
&mut self,
channel: usize,
sample: usize
) -> &mut Self::SampleType
unsafe fn get_unchecked_mut(
&mut self,
channel: usize,
sample: usize
) -> &mut Self::SampleType
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
impl<'a, SampleType> RefUnwindSafe for InterleavedAudioBuffer<'a, SampleType> where
SampleType: RefUnwindSafe,
impl<'a, SampleType> Send for InterleavedAudioBuffer<'a, SampleType> where
SampleType: Send,
impl<'a, SampleType> Sync for InterleavedAudioBuffer<'a, SampleType> where
SampleType: Sync,
impl<'a, SampleType> Unpin for InterleavedAudioBuffer<'a, SampleType>
impl<'a, SampleType> !UnwindSafe for InterleavedAudioBuffer<'a, SampleType>