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
impl<'a, SampleType: Float + Sync + Send> AudioBuffer for InterleavedAudioBuffer<'a, SampleType>
impl<'a, SampleType: Float + Sync + Send> AudioBuffer for InterleavedAudioBuffer<'a, SampleType>
type SampleType = SampleType
type SampleType = SampleType
The type of samples within this buffer. Currently restricted to num::Float numbers.
The number of channels in this buffer
The number of samples in this buffer
Get a ref to an INPUT sample in this buffer
Get a mutable ref to an OUTPUT sample in this buffer Read more
Set an OUTPUT sample in this buffer
fn iter(&self) -> AudioBufferIterator<'_, Self>ⓘNotable traits for AudioBufferIterator<'a, BufferType>
impl<'a, BufferType: AudioBuffer> Iterator for AudioBufferIterator<'a, BufferType> type Item = AudioFrameReference<'a, BufferType>;
fn iter(&self) -> AudioBufferIterator<'_, Self>ⓘNotable traits for AudioBufferIterator<'a, BufferType>
impl<'a, BufferType: AudioBuffer> Iterator for AudioBufferIterator<'a, BufferType> type Item = AudioFrameReference<'a, BufferType>;
Create a read only iterator
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>