pub struct AudioBufferRef<'a> { /* private fields */ }Expand description
Reference to an audio buffer with convenience methods
Implementations§
Source§impl<'a> AudioBufferRef<'a>
impl<'a> AudioBufferRef<'a>
Sourcepub fn data_byte_size(&self) -> usize
pub fn data_byte_size(&self) -> usize
Get the size of the data in bytes
Sourcepub fn data(&self) -> &'a [u8] ⓘ
pub fn data(&self) -> &'a [u8] ⓘ
Get the raw audio data as a byte slice
The returned slice is tied to the lifetime 'a of the wrapped buffer
reference rather than to this AudioBufferRef, because the underlying
block-buffer memory lives at least as long as the borrowed
AudioBuffer (and the AudioBufferList that owns it).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AudioBufferRef<'a>
impl<'a> RefUnwindSafe for AudioBufferRef<'a>
impl<'a> !Send for AudioBufferRef<'a>
impl<'a> !Sync for AudioBufferRef<'a>
impl<'a> Unpin for AudioBufferRef<'a>
impl<'a> UnsafeUnpin for AudioBufferRef<'a>
impl<'a> UnwindSafe for AudioBufferRef<'a>
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