pub struct AudioChunkHeader {
pub timestamp_us: i64,
pub send_ahead: u32,
}Expand description
The fixed header of a player audio chunk, the binary message with id AUDIO_CHUNK_ID.
Layout: one message-id byte, an 8-byte big-endian timestamp in microseconds and a 4-byte
big-endian send_ahead in microseconds; the encoded audio follows. The timestamp is two’s
complement, so negative values round-trip exactly.
Fields§
§timestamp_us: i64Server clock time in microseconds at which the first sample of the chunk should be output.
send_ahead: u32Microseconds between the server transmitting the chunk and Self::timestamp_us.
It measures arrival delay only and never changes when the chunk is played.
Implementations§
Source§impl AudioChunkHeader
impl AudioChunkHeader
Trait Implementations§
Source§impl Clone for AudioChunkHeader
impl Clone for AudioChunkHeader
impl Copy for AudioChunkHeader
Source§impl Debug for AudioChunkHeader
impl Debug for AudioChunkHeader
impl Eq for AudioChunkHeader
Source§impl PartialEq for AudioChunkHeader
impl PartialEq for AudioChunkHeader
impl StructuralPartialEq for AudioChunkHeader
Auto Trait Implementations§
impl Forget for AudioChunkHeader
impl Freeze for AudioChunkHeader
impl Move for AudioChunkHeader
impl RefUnwindSafe for AudioChunkHeader
impl Send for AudioChunkHeader
impl Sync for AudioChunkHeader
impl Unpin for AudioChunkHeader
impl UnsafeUnpin for AudioChunkHeader
impl UnwindSafe for AudioChunkHeader
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