Struct windows::Win32::Media::Audio::DirectSound::IDirectSound
pub struct IDirectSound(/* private fields */);
Implementations§
§impl IDirectSound
impl IDirectSound
pub unsafe fn CreateSoundBuffer<P0>(
&self,
pcdsbufferdesc: *const DSBUFFERDESC,
ppdsbuffer: *mut Option<IDirectSoundBuffer>,
punkouter: P0
) -> Result<()>where
P0: IntoParam<IUnknown>,
pub unsafe fn GetCaps(&self, pdscaps: *mut DSCAPS) -> Result<()>
pub unsafe fn DuplicateSoundBuffer<P0>(
&self,
pdsbufferoriginal: P0
) -> Result<IDirectSoundBuffer>where
P0: IntoParam<IDirectSoundBuffer>,
pub unsafe fn SetCooperativeLevel<P0>(
&self,
hwnd: P0,
dwlevel: u32
) -> Result<()>where
P0: IntoParam<HWND>,
pub unsafe fn Compact(&self) -> Result<()>
pub unsafe fn GetSpeakerConfig(&self) -> Result<u32>
pub unsafe fn SetSpeakerConfig(&self, dwspeakerconfig: u32) -> Result<()>
pub unsafe fn Initialize(&self, pcguiddevice: Option<*const GUID>) -> Result<()>
Trait Implementations§
§impl Clone for IDirectSound
impl Clone for IDirectSound
§fn clone(&self) -> IDirectSound
fn clone(&self) -> IDirectSound
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 IDirectSound
impl Debug for IDirectSound
§impl From<&IDirectSound> for &IUnknown
impl From<&IDirectSound> for &IUnknown
§fn from(value: &IDirectSound) -> Self
fn from(value: &IDirectSound) -> Self
Converts to this type from the input type.
§impl From<&IDirectSound8> for &IDirectSound
impl From<&IDirectSound8> for &IDirectSound
§fn from(value: &IDirectSound8) -> Self
fn from(value: &IDirectSound8) -> Self
Converts to this type from the input type.
§impl From<IDirectSound> for IUnknown
impl From<IDirectSound> for IUnknown
§fn from(value: IDirectSound) -> Self
fn from(value: IDirectSound) -> Self
Converts to this type from the input type.
§impl From<IDirectSound8> for IDirectSound
impl From<IDirectSound8> for IDirectSound
§fn from(value: IDirectSound8) -> Self
fn from(value: IDirectSound8) -> Self
Converts to this type from the input type.
§impl Interface for IDirectSound
impl Interface for IDirectSound
§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.
§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§impl PartialEq for IDirectSound
impl PartialEq for IDirectSound
§fn eq(&self, other: &IDirectSound) -> bool
fn eq(&self, other: &IDirectSound) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDirectSound
impl StructuralPartialEq for IDirectSound
Auto Trait Implementations§
impl RefUnwindSafe for IDirectSound
impl !Send for IDirectSound
impl !Sync for IDirectSound
impl Unpin for IDirectSound
impl UnwindSafe for IDirectSound
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