pub struct MultistreamAudio {
pub pcm: Vec<i16>,
pub channels: u8,
pub sample_rate_hz: u32,
pub samples_per_channel: usize,
}Expand description
Decoded audio for one multistream Ogg packet: C-channel interleaved
48 kHz PCM.
Fields§
§pcm: Vec<i16>Interleaved signed 16-bit PCM at 48 kHz, C channels. Length is
samples_per_channel * channels.
channels: u8Output channel count C.
sample_rate_hz: u32Output sample rate (always 48 kHz).
samples_per_channel: usizePer-channel 48 kHz sample count.
Trait Implementations§
Source§impl Clone for MultistreamAudio
impl Clone for MultistreamAudio
Source§fn clone(&self) -> MultistreamAudio
fn clone(&self) -> MultistreamAudio
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 moreSource§impl Debug for MultistreamAudio
impl Debug for MultistreamAudio
impl Eq for MultistreamAudio
Source§impl PartialEq for MultistreamAudio
impl PartialEq for MultistreamAudio
Source§fn eq(&self, other: &MultistreamAudio) -> bool
fn eq(&self, other: &MultistreamAudio) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MultistreamAudio
Auto Trait Implementations§
impl Freeze for MultistreamAudio
impl RefUnwindSafe for MultistreamAudio
impl Send for MultistreamAudio
impl Sync for MultistreamAudio
impl Unpin for MultistreamAudio
impl UnsafeUnpin for MultistreamAudio
impl UnwindSafe for MultistreamAudio
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