pub enum AudioData {
F32(Vec<f32>),
Pcm(Vec<u8>),
}Expand description
Audio data pushed by the consumer — either f32 or raw PCM.
Variants§
F32(Vec<f32>)
Interleaved f32 samples (from DSP, EQ, AirPlay receivers). Range: -1.0 to 1.0.
Pcm(Vec<u8>)
Raw interleaved PCM bytes at the stream’s configured sample format (from pipe/file/process readers). Byte order: little-endian.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioData
impl RefUnwindSafe for AudioData
impl Send for AudioData
impl Sync for AudioData
impl Unpin for AudioData
impl UnsafeUnpin for AudioData
impl UnwindSafe for AudioData
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