Trait windows::Win32::Media::Audio::DirectMusic::IDirectMusic_Impl

pub trait IDirectMusic_Impl: Sized {
    // Required methods
    fn EnumPort(
        &self,
        dwindex: u32,
        pportcaps: *mut DMUS_PORTCAPS,
    ) -> Result<()>;
    fn CreateMusicBuffer(
        &self,
        pbufferdesc: *mut DMUS_BUFFERDESC,
        ppbuffer: *mut Option<IDirectMusicBuffer>,
        punkouter: Option<&IUnknown>,
    ) -> Result<()>;
    fn CreatePort(
        &self,
        rclsidport: *const GUID,
        pportparams: *mut DMUS_PORTPARAMS8,
        ppport: *mut Option<IDirectMusicPort>,
        punkouter: Option<&IUnknown>,
    ) -> Result<()>;
    fn EnumMasterClock(
        &self,
        dwindex: u32,
        lpclockinfo: *mut DMUS_CLOCKINFO8,
    ) -> Result<()>;
    fn GetMasterClock(
        &self,
        pguidclock: *mut GUID,
        ppreferenceclock: *mut Option<IReferenceClock>,
    ) -> Result<()>;
    fn SetMasterClock(&self, rguidclock: *const GUID) -> Result<()>;
    fn Activate(&self, fenable: BOOL) -> Result<()>;
    fn GetDefaultPort(&self, pguidport: *mut GUID) -> Result<()>;
    fn SetDirectSound(
        &self,
        pdirectsound: Option<&IDirectSound>,
        hwnd: HWND,
    ) -> Result<()>;
}

Required Methods§

fn EnumPort(&self, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> Result<()>

fn CreateMusicBuffer( &self, pbufferdesc: *mut DMUS_BUFFERDESC, ppbuffer: *mut Option<IDirectMusicBuffer>, punkouter: Option<&IUnknown>, ) -> Result<()>

fn CreatePort( &self, rclsidport: *const GUID, pportparams: *mut DMUS_PORTPARAMS8, ppport: *mut Option<IDirectMusicPort>, punkouter: Option<&IUnknown>, ) -> Result<()>

fn EnumMasterClock( &self, dwindex: u32, lpclockinfo: *mut DMUS_CLOCKINFO8, ) -> Result<()>

fn GetMasterClock( &self, pguidclock: *mut GUID, ppreferenceclock: *mut Option<IReferenceClock>, ) -> Result<()>

fn SetMasterClock(&self, rguidclock: *const GUID) -> Result<()>

fn Activate(&self, fenable: BOOL) -> Result<()>

fn GetDefaultPort(&self, pguidport: *mut GUID) -> Result<()>

fn SetDirectSound( &self, pdirectsound: Option<&IDirectSound>, hwnd: HWND, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§