pub struct AudioBufferInterleaved<T: FloatType> { /* private fields */ }Trait Implementations§
Source§impl<T: FloatType> AudioBufferInterleavedImpl<T> for AudioBufferInterleaved<T>
impl<T: FloatType> AudioBufferInterleavedImpl<T> for AudioBufferInterleaved<T>
Source§fn new(len: usize, layout: AudioChannelLayout) -> AudioBufferInterleaved<T>
fn new(len: usize, layout: AudioChannelLayout) -> AudioBufferInterleaved<T>
Creates a new interleaved audio buffer with the specified length (per channel) and channel layout.
The total buffer length will be
length * layout as usize.Source§fn get_channel_layout(&self) -> AudioChannelLayout
fn get_channel_layout(&self) -> AudioChannelLayout
Returns the current channel layout of the buffer.
Source§fn set_channel_layout(&mut self, layout: AudioChannelLayout)
fn set_channel_layout(&mut self, layout: AudioChannelLayout)
Sets a new channel layout, potentially reallocating the buffer if the layout changes.
Source§fn get_buffer(&self) -> &[T]
fn get_buffer(&self) -> &[T]
Returns an immutable reference to the entire interleaved buffer.
Source§fn get_buffer_mut(&mut self) -> &mut [T]
fn get_buffer_mut(&mut self) -> &mut [T]
Returns a mutable reference to the entire interleaved buffer.
Source§fn len_planar(&self) -> usize
fn len_planar(&self) -> usize
Returns the length per channel (planar length).
Source§fn len_interleaved(&self) -> usize
fn len_interleaved(&self) -> usize
Returns the total interleaved length (channels * planar length).
Source§fn resize(&mut self, new_len: usize)
fn resize(&mut self, new_len: usize)
Resizes the buffer to a new planar length, adjusting the total size accordingly.
Source§fn copy_to_planar(&self, output: &mut AudioBuffer<T>)
fn copy_to_planar(&self, output: &mut AudioBuffer<T>)
Copies the interleaved data into a planar AudioBuffer (separate buffers per channel).
Source§impl<T: FloatType> AudioBufferMathImpl<T> for AudioBufferInterleaved<T>
impl<T: FloatType> AudioBufferMathImpl<T> for AudioBufferInterleaved<T>
Source§impl<T: Clone + FloatType> Clone for AudioBufferInterleaved<T>
impl<T: Clone + FloatType> Clone for AudioBufferInterleaved<T>
Source§fn clone(&self) -> AudioBufferInterleaved<T>
fn clone(&self) -> AudioBufferInterleaved<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for AudioBufferInterleaved<T>
impl<T> RefUnwindSafe for AudioBufferInterleaved<T>where
T: RefUnwindSafe,
impl<T> Send for AudioBufferInterleaved<T>where
T: Send,
impl<T> Sync for AudioBufferInterleaved<T>where
T: Sync,
impl<T> Unpin for AudioBufferInterleaved<T>where
T: Unpin,
impl<T> UnwindSafe for AudioBufferInterleaved<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more