pub struct AudioBufferList { /* private fields */ }Expand description
List of audio buffers from an audio sample
Contains one or more AudioBuffers, typically one per audio channel.
Use iter() to iterate over the buffers.
Implementations§
Source§impl AudioBufferList
impl AudioBufferList
Sourcepub fn num_buffers(&self) -> usize
pub fn num_buffers(&self) -> usize
Get the number of buffers in the list
Sourcepub fn get(&self, index: usize) -> Option<&AudioBuffer>
pub fn get(&self, index: usize) -> Option<&AudioBuffer>
Get a buffer by index
Sourcepub fn buffer(&self, index: usize) -> Option<AudioBufferRef<'_>>
pub fn buffer(&self, index: usize) -> Option<AudioBufferRef<'_>>
Get a buffer reference by index
Sourcepub fn get_mut(&mut self, index: usize) -> Option<&mut AudioBuffer>
pub fn get_mut(&mut self, index: usize) -> Option<&mut AudioBuffer>
Get a mutable buffer by index
Sourcepub fn iter(&self) -> AudioBufferListIter<'_> ⓘ
pub fn iter(&self) -> AudioBufferListIter<'_> ⓘ
Iterate over the audio buffers
Trait Implementations§
Source§impl Debug for AudioBufferList
impl Debug for AudioBufferList
Source§impl Display for AudioBufferList
impl Display for AudioBufferList
Source§impl Drop for AudioBufferList
impl Drop for AudioBufferList
Source§impl<'a> IntoIterator for &'a AudioBufferList
impl<'a> IntoIterator for &'a AudioBufferList
Auto Trait Implementations§
impl Freeze for AudioBufferList
impl RefUnwindSafe for AudioBufferList
impl !Send for AudioBufferList
impl !Sync for AudioBufferList
impl Unpin for AudioBufferList
impl UnwindSafe for AudioBufferList
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