pub enum AudioMode {
Decode,
Passthrough,
}Expand description
How the client wants the stream delivered.
Variants§
Decode
Play raw samples.
The session advertises PCM only, so the server delivers raw samples and the sink receives
AudioFrame::Pcm. An encoded stream would need a decoder this
build does not carry, so the session rejects one instead of handing encoded bytes to a
sink that expects samples.
Passthrough
Forward encoded frames.
The session advertises the encoded formats it can forward and the sink receives
AudioFrame::Encoded. A PCM stream still arrives as
AudioFrame::Pcm, because there is nothing to decode.
Trait Implementations§
impl Copy for AudioMode
impl Eq for AudioMode
impl StructuralPartialEq for AudioMode
Auto Trait Implementations§
impl Forget for AudioMode
impl Freeze for AudioMode
impl Move 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<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