windows::Win32::Media::DirectShow

Trait IAMDirectSound_Impl

pub trait IAMDirectSound_Impl: IUnknownImpl {
    // Required methods
    fn GetDirectSoundInterface(&self) -> Result<IDirectSound>;
    fn GetPrimaryBufferInterface(&self) -> Result<IDirectSoundBuffer>;
    fn GetSecondaryBufferInterface(&self) -> Result<IDirectSoundBuffer>;
    fn ReleaseDirectSoundInterface(
        &self,
        lpds: Ref<'_, IDirectSound>,
    ) -> Result<()>;
    fn ReleasePrimaryBufferInterface(
        &self,
        lpdsb: Ref<'_, IDirectSoundBuffer>,
    ) -> Result<()>;
    fn ReleaseSecondaryBufferInterface(
        &self,
        lpdsb: Ref<'_, IDirectSoundBuffer>,
    ) -> Result<()>;
    fn SetFocusWindow(&self, param0: HWND, param1: BOOL) -> Result<()>;
    fn GetFocusWindow(&self, param0: *mut HWND, param1: *mut BOOL) -> Result<()>;
}

Required Methods§

fn GetDirectSoundInterface(&self) -> Result<IDirectSound>

fn GetPrimaryBufferInterface(&self) -> Result<IDirectSoundBuffer>

fn GetSecondaryBufferInterface(&self) -> Result<IDirectSoundBuffer>

fn ReleaseDirectSoundInterface(&self, lpds: Ref<'_, IDirectSound>) -> Result<()>

fn ReleasePrimaryBufferInterface( &self, lpdsb: Ref<'_, IDirectSoundBuffer>, ) -> Result<()>

fn ReleaseSecondaryBufferInterface( &self, lpdsb: Ref<'_, IDirectSoundBuffer>, ) -> Result<()>

fn SetFocusWindow(&self, param0: HWND, param1: BOOL) -> Result<()>

fn GetFocusWindow(&self, param0: *mut HWND, param1: *mut BOOL) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§