Trait windows::Win32::Media::Audio::IAudioSessionManager2_Impl

pub trait IAudioSessionManager2_Impl: Sized + IAudioSessionManager_Impl {
    // Required methods
    fn GetSessionEnumerator(&self) -> Result<IAudioSessionEnumerator>;
    fn RegisterSessionNotification(
        &self,
        sessionnotification: Option<&IAudioSessionNotification>,
    ) -> Result<()>;
    fn UnregisterSessionNotification(
        &self,
        sessionnotification: Option<&IAudioSessionNotification>,
    ) -> Result<()>;
    fn RegisterDuckNotification(
        &self,
        sessionid: &PCWSTR,
        ducknotification: Option<&IAudioVolumeDuckNotification>,
    ) -> Result<()>;
    fn UnregisterDuckNotification(
        &self,
        ducknotification: Option<&IAudioVolumeDuckNotification>,
    ) -> Result<()>;
}

Required Methods§

fn GetSessionEnumerator(&self) -> Result<IAudioSessionEnumerator>

fn RegisterSessionNotification( &self, sessionnotification: Option<&IAudioSessionNotification>, ) -> Result<()>

fn UnregisterSessionNotification( &self, sessionnotification: Option<&IAudioSessionNotification>, ) -> Result<()>

fn RegisterDuckNotification( &self, sessionid: &PCWSTR, ducknotification: Option<&IAudioVolumeDuckNotification>, ) -> Result<()>

fn UnregisterDuckNotification( &self, ducknotification: Option<&IAudioVolumeDuckNotification>, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§