Enum AudioMode
pub enum AudioMode {
Off,
Decode,
Play(Engine),
}Expand description
What a player does with the broadcast’s audio.
Variants§
Off
Leaves the audio alone, without subscribing to it.
Decode
Decodes the audio for Player::audio_frames without playing it.
Nothing is queued ahead of a device, so the audio is not paced, and its measured jitter does not hold the video back.
Play(Engine)
Decodes the audio and plays it on this speaker engine.
Every player writing to one engine is mixed into one device stream.
The decoded audio also goes to Player::audio_frames. The jitter
the audio decoder measures raises the playout delay of the video too.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioMode
impl RefUnwindSafe for AudioMode
impl Send for AudioMode
impl Sync for AudioMode
impl Unpin for AudioMode
impl UnsafeUnpin for AudioMode
impl UnwindSafe for AudioMode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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