Struct windows::Media::Devices::MediaDevice
pub struct MediaDevice;
Implementations§
§impl MediaDevice
impl MediaDevice
pub fn GetAudioCaptureSelector() -> Result<HSTRING>
pub fn GetAudioRenderSelector() -> Result<HSTRING>
pub fn GetVideoCaptureSelector() -> Result<HSTRING>
pub fn GetDefaultAudioCaptureId(role: AudioDeviceRole) -> Result<HSTRING>
pub fn GetDefaultAudioRenderId(role: AudioDeviceRole) -> Result<HSTRING>
pub fn DefaultAudioCaptureDeviceChanged<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<IInspectable, DefaultAudioCaptureDeviceChangedEventArgs>>,
pub fn RemoveDefaultAudioCaptureDeviceChanged( cookie: EventRegistrationToken, ) -> Result<()>
pub fn DefaultAudioRenderDeviceChanged<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<IInspectable, DefaultAudioRenderDeviceChangedEventArgs>>,
pub fn RemoveDefaultAudioRenderDeviceChanged( cookie: EventRegistrationToken, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for MediaDevice
impl RefUnwindSafe for MediaDevice
impl Send for MediaDevice
impl Sync for MediaDevice
impl Unpin for MediaDevice
impl UnwindSafe for MediaDevice
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