pub struct Audio {
pub profile: u16,
pub tab: u16,
pub seq: u32,
pub sample_rate: u32,
pub channels: u8,
pub samples: Vec<i16>,
}Expand description
One audio packet from the page: interleaved 16-bit PCM.
PCM, not encoded audio, because both ends are ours: the host gets float samples from CEF and the client’s player takes them directly.
Fields§
§profile: u16The profile whose page made it.
tab: u16The profile’s tab whose page made it.
seq: u32Monotonic per tab, so a dropped packet is visible.
sample_rate: u32§channels: u8§samples: Vec<i16>Interleaved samples, little-endian on the wire.
Implementations§
Trait Implementations§
impl Eq for Audio
impl StructuralPartialEq for Audio
Auto Trait Implementations§
impl Freeze for Audio
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnsafeUnpin for Audio
impl UnwindSafe for Audio
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.