pub struct PlaybackReference { /* private fields */ }Expand description
Explicit permission to use an already-declared stream as an echo reference. This never opens, records or sends another application’s audio.
Implementations§
Source§impl PlaybackReference
impl PlaybackReference
Sourcepub fn selected_application(input: impl Into<EchoAudioInput>) -> Self
pub fn selected_application(input: impl Into<EchoAudioInput>) -> Self
Limits reference coverage to the selected application’s audio.
Sourcepub fn output_mix(input: impl Into<EchoAudioInput>) -> Self
pub fn output_mix(input: impl Into<EchoAudioInput>) -> Self
Uses an output mix that the caller has separately authorized and captured.
Sourcepub fn rendered_audio(input: impl Into<EchoAudioInput>) -> Self
pub fn rendered_audio(input: impl Into<EchoAudioInput>) -> Self
Uses caller-owned audio that is also submitted to a playback device.
Trait Implementations§
Source§impl Clone for PlaybackReference
impl Clone for PlaybackReference
Auto Trait Implementations§
impl Forget for PlaybackReference
impl Freeze for PlaybackReference
impl RefUnwindSafe for PlaybackReference
impl Send for PlaybackReference
impl Sync for PlaybackReference
impl Unpin for PlaybackReference
impl UnsafeUnpin for PlaybackReference
impl UnwindSafe for PlaybackReference
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