pub enum Kind {
Voice,
Music,
}Expand description
What the audio carries, which tunes the codec for it.
Mirrors @moq/publish’s audio source kind. Only Opus uses it; PCM and AAC
encode the same either way.
Variants§
Voice
Speech, such as a microphone: Opus codes it as VoIP voice, and a
Producer sends nothing while the talker is silent.
libopus decides what is silence, through its discontinuous transmission.
The bare Encoder returns its packets as they are, a no-transmit packet
for most silent frames; the producer declares the end of speech at the
first one, as a mute does, drops the rest of the silence, and opens a new
group when speech resumes.
Music
Music or mixed content, such as a screen share: Opus codes it as music.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.