Struct AudioBufferList
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§
§impl AudioBufferList
impl AudioBufferList
pub const fn num_buffers(&self) -> usize
pub const fn num_buffers(&self) -> usize
Get the number of buffers in the list
pub fn get(&self, index: usize) -> Option<&AudioBuffer>
pub fn get(&self, index: usize) -> Option<&AudioBuffer>
Get a buffer by index
pub fn buffer(&self, index: usize) -> Option<AudioBufferRef<'_>>
pub fn buffer(&self, index: usize) -> Option<AudioBufferRef<'_>>
Get a buffer reference by index
pub const fn iter(&self) -> AudioBufferListIter<'_> ⓘ
pub const fn iter(&self) -> AudioBufferListIter<'_> ⓘ
Iterate over the audio buffers
Trait Implementations§
§impl Debug for AudioBufferList
impl Debug for AudioBufferList
§impl Display for AudioBufferList
impl Display for AudioBufferList
§impl Drop for AudioBufferList
impl Drop for AudioBufferList
§impl<'a> IntoIterator for &'a AudioBufferList
impl<'a> IntoIterator for &'a AudioBufferList
§type Item = &'a AudioBuffer
type Item = &'a AudioBuffer
The type of the elements being iterated over.
§type IntoIter = AudioBufferListIter<'a>
type IntoIter = AudioBufferListIter<'a>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <&'a AudioBufferList as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a AudioBufferList as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl !Send for AudioBufferList
impl !Sync for AudioBufferList
impl Freeze for AudioBufferList
impl RefUnwindSafe for AudioBufferList
impl Unpin for AudioBufferList
impl UnsafeUnpin 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