Struct AudioBuffer
pub struct AudioBuffer {
pub number_channels: u32,
pub data_bytes_size: u32,
/* private fields */
}Expand description
Raw audio buffer containing sample data
An AudioBuffer represents a single channel or interleaved audio data.
Access the raw bytes via data().
Fields§
§number_channels: u32Number of audio channels in this buffer
data_bytes_size: u32Size of the audio data in bytes
Implementations§
§impl AudioBuffer
impl AudioBuffer
pub const fn data_byte_size(&self) -> usize
pub const fn data_byte_size(&self) -> usize
Get the size of the data in bytes
Trait Implementations§
§impl Debug for AudioBuffer
impl Debug for AudioBuffer
§impl Display for AudioBuffer
impl Display for AudioBuffer
impl Eq for AudioBuffer
§impl Hash for AudioBuffer
impl Hash for AudioBuffer
§impl PartialEq for AudioBuffer
impl PartialEq for AudioBuffer
Auto Trait Implementations§
impl !Send for AudioBuffer
impl !Sync for AudioBuffer
impl Freeze for AudioBuffer
impl RefUnwindSafe for AudioBuffer
impl Unpin for AudioBuffer
impl UnsafeUnpin for AudioBuffer
impl UnwindSafe for AudioBuffer
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