Struct IDirectMusicPort
pub struct IDirectMusicPort(/* private fields */);
Implementations§
§impl IDirectMusicPort
impl IDirectMusicPort
pub unsafe fn PlayBuffer<P0>(&self, pbuffer: P0) -> Result<()>where
P0: Param<IDirectMusicBuffer>,
pub unsafe fn SetReadNotificationHandle(&self, hevent: HANDLE) -> Result<()>
pub unsafe fn Read<P0>(&self, pbuffer: P0) -> Result<()>where
P0: Param<IDirectMusicBuffer>,
pub unsafe fn DownloadInstrument<P0>(
&self,
pinstrument: P0,
ppdownloadedinstrument: *mut Option<IDirectMusicDownloadedInstrument>,
pnoteranges: *mut DMUS_NOTERANGE,
dwnumnoteranges: u32,
) -> Result<()>where
P0: Param<IDirectMusicInstrument>,
pub unsafe fn UnloadInstrument<P0>(
&self,
pdownloadedinstrument: P0,
) -> Result<()>where
P0: Param<IDirectMusicDownloadedInstrument>,
pub unsafe fn GetLatencyClock(&self) -> Result<IReferenceClock>
pub unsafe fn GetRunningStats(&self, pstats: *mut DMUS_SYNTHSTATS) -> Result<()>
pub unsafe fn Compact(&self) -> Result<()>
pub unsafe fn GetCaps(&self, pportcaps: *mut DMUS_PORTCAPS) -> Result<()>
pub unsafe fn DeviceIoControl( &self, dwiocontrolcode: u32, lpinbuffer: *mut c_void, ninbuffersize: u32, lpoutbuffer: *mut c_void, noutbuffersize: u32, lpbytesreturned: *mut u32, lpoverlapped: *mut OVERLAPPED, ) -> Result<()>
pub unsafe fn SetNumChannelGroups(&self, dwchannelgroups: u32) -> Result<()>
pub unsafe fn GetNumChannelGroups( &self, pdwchannelgroups: *mut u32, ) -> Result<()>
pub unsafe fn Activate(&self, factive: bool) -> Result<()>
pub unsafe fn SetChannelPriority( &self, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32, ) -> Result<()>
pub unsafe fn GetChannelPriority( &self, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32, ) -> Result<()>
pub unsafe fn SetDirectSound<P0, P1>(
&self,
pdirectsound: P0,
pdirectsoundbuffer: P1,
) -> Result<()>where
P0: Param<IDirectSound>,
P1: Param<IDirectSoundBuffer>,
pub unsafe fn GetFormat( &self, pwaveformatex: *mut WAVEFORMATEX, pdwwaveformatexsize: *mut u32, pdwbuffersize: *mut u32, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IDirectMusicPort
impl CanInto<IUnknown> for IDirectMusicPort
§impl Clone for IDirectMusicPort
impl Clone for IDirectMusicPort
§fn clone(&self) -> IDirectMusicPort
fn clone(&self) -> IDirectMusicPort
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IDirectMusicPort
impl Debug for IDirectMusicPort
§impl From<&IDirectMusicPort> for &IUnknown
impl From<&IDirectMusicPort> for &IUnknown
§fn from(value: &IDirectMusicPort) -> Self
fn from(value: &IDirectMusicPort) -> Self
Converts to this type from the input type.
§impl From<IDirectMusicPort> for IUnknown
impl From<IDirectMusicPort> for IUnknown
§fn from(value: IDirectMusicPort) -> Self
fn from(value: IDirectMusicPort) -> Self
Converts to this type from the input type.
§impl Interface for IDirectMusicPort
impl Interface for IDirectMusicPort
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IDirectMusicPort
impl PartialEq for IDirectMusicPort
impl Eq for IDirectMusicPort
impl StructuralPartialEq for IDirectMusicPort
Auto Trait Implementations§
impl Freeze for IDirectMusicPort
impl RefUnwindSafe for IDirectMusicPort
impl !Send for IDirectMusicPort
impl !Sync for IDirectMusicPort
impl Unpin for IDirectMusicPort
impl UnwindSafe for IDirectMusicPort
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