windows::Win32::Media::Audio::DirectMusic

Trait IDirectMusicSynthSink_Impl

pub trait IDirectMusicSynthSink_Impl: IUnknownImpl {
    // Required methods
    fn Init(&self, psynth: Ref<'_, IDirectMusicSynth>) -> Result<()>;
    fn SetMasterClock(&self, pclock: Ref<'_, IReferenceClock>) -> Result<()>;
    fn GetLatencyClock(&self) -> Result<IReferenceClock>;
    fn Activate(&self, fenable: BOOL) -> Result<()>;
    fn SampleToRefTime(
        &self,
        llsampletime: i64,
        prftime: *mut i64,
    ) -> Result<()>;
    fn RefTimeToSample(
        &self,
        rftime: i64,
        pllsampletime: *mut i64,
    ) -> Result<()>;
    fn SetDirectSound(
        &self,
        pdirectsound: Ref<'_, IDirectSound>,
        pdirectsoundbuffer: Ref<'_, IDirectSoundBuffer>,
    ) -> Result<()>;
    fn GetDesiredBufferSize(
        &self,
        pdwbuffersizeinsamples: *mut u32,
    ) -> Result<()>;
}

Required Methods§

fn Init(&self, psynth: Ref<'_, IDirectMusicSynth>) -> Result<()>

fn SetMasterClock(&self, pclock: Ref<'_, IReferenceClock>) -> Result<()>

fn GetLatencyClock(&self) -> Result<IReferenceClock>

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

fn SampleToRefTime(&self, llsampletime: i64, prftime: *mut i64) -> Result<()>

fn RefTimeToSample(&self, rftime: i64, pllsampletime: *mut i64) -> Result<()>

fn SetDirectSound( &self, pdirectsound: Ref<'_, IDirectSound>, pdirectsoundbuffer: Ref<'_, IDirectSoundBuffer>, ) -> Result<()>

fn GetDesiredBufferSize(&self, pdwbuffersizeinsamples: *mut u32) -> 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§