Struct PCMAudioSheet
pub struct PCMAudioSheet<'a> {
pub pcm_data: &'a [u8],
pub sample_rate: u32,
pub bit_depth: u8,
pub channels: u8,
}Expand description
Audio sheet for PCM passthrough (Mode B)
Acts as a pointer to raw byte streams for zero-copy playback
Zero-Heap Consideration: Copy type, references byte buffer (no heap allocation)
Fields§
§pcm_data: &'a [u8]Raw PCM byte data reference (zero-copy)
sample_rate: u32Sample rate in Hz (e.g., 48000 for DCI standard)
bit_depth: u8Bit depth (e.g., 24 for DCI standard)
channels: u8Number of channels (e.g., 6 for 5.1 surround)
Trait Implementations§
§impl<'a> Clone for PCMAudioSheet<'a>
impl<'a> Clone for PCMAudioSheet<'a>
§fn clone(&self) -> PCMAudioSheet<'a>
fn clone(&self) -> PCMAudioSheet<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PCMAudioSheet<'a>
Auto Trait Implementations§
impl<'a> Freeze for PCMAudioSheet<'a>
impl<'a> RefUnwindSafe for PCMAudioSheet<'a>
impl<'a> Send for PCMAudioSheet<'a>
impl<'a> Sync for PCMAudioSheet<'a>
impl<'a> Unpin for PCMAudioSheet<'a>
impl<'a> UnsafeUnpin for PCMAudioSheet<'a>
impl<'a> UnwindSafe for PCMAudioSheet<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more