Struct IDirectSoundBuffer8
pub struct IDirectSoundBuffer8(/* private fields */);
Implementations§
§impl IDirectSoundBuffer8
impl IDirectSoundBuffer8
pub unsafe fn SetFX( &self, dweffectscount: u32, pdsfxdesc: Option<*const DSEFFECTDESC>, pdwresultcodes: Option<*mut u32>, ) -> Result<()>
pub unsafe fn AcquireResources( &self, dwflags: u32, pdwresultcodes: &mut [u32], ) -> Result<()>
pub unsafe fn GetObjectInPath( &self, rguidobject: *const GUID, dwindex: u32, rguidinterface: *const GUID, ppobject: *mut *mut c_void, ) -> Result<()>
Methods from Deref<Target = IDirectSoundBuffer>§
pub unsafe fn GetCaps(&self, pdsbuffercaps: *mut DSBCAPS) -> Result<()>
pub unsafe fn GetCurrentPosition( &self, pdwcurrentplaycursor: Option<*mut u32>, pdwcurrentwritecursor: Option<*mut u32>, ) -> Result<()>
pub unsafe fn GetFormat( &self, pwfxformat: Option<*mut WAVEFORMATEX>, dwsizeallocated: u32, pdwsizewritten: Option<*mut u32>, ) -> Result<()>
pub unsafe fn GetVolume(&self) -> Result<i32>
pub unsafe fn GetPan(&self) -> Result<i32>
pub unsafe fn GetFrequency(&self) -> Result<u32>
pub unsafe fn GetStatus(&self) -> Result<u32>
pub unsafe fn Initialize<P0>(
&self,
pdirectsound: P0,
pcdsbufferdesc: *const DSBUFFERDESC,
) -> Result<()>where
P0: Param<IDirectSound>,
pub unsafe fn Lock( &self, dwoffset: u32, dwbytes: u32, ppvaudioptr1: *mut *mut c_void, pdwaudiobytes1: *mut u32, ppvaudioptr2: Option<*mut *mut c_void>, pdwaudiobytes2: Option<*mut u32>, dwflags: u32, ) -> Result<()>
pub unsafe fn Play( &self, dwreserved1: u32, dwpriority: u32, dwflags: u32, ) -> Result<()>
pub unsafe fn SetCurrentPosition(&self, dwnewposition: u32) -> Result<()>
pub unsafe fn SetFormat(&self, pcfxformat: *const WAVEFORMATEX) -> Result<()>
pub unsafe fn SetVolume(&self, lvolume: i32) -> Result<()>
pub unsafe fn SetPan(&self, lpan: i32) -> Result<()>
pub unsafe fn SetFrequency(&self, dwfrequency: u32) -> Result<()>
pub unsafe fn Stop(&self) -> Result<()>
pub unsafe fn Unlock( &self, pvaudioptr1: *const c_void, dwaudiobytes1: u32, pvaudioptr2: Option<*const c_void>, dwaudiobytes2: u32, ) -> Result<()>
pub unsafe fn Restore(&self) -> Result<()>
Trait Implementations§
§impl CanInto<IDirectSoundBuffer> for IDirectSoundBuffer8
impl CanInto<IDirectSoundBuffer> for IDirectSoundBuffer8
§impl CanInto<IUnknown> for IDirectSoundBuffer8
impl CanInto<IUnknown> for IDirectSoundBuffer8
§impl Clone for IDirectSoundBuffer8
impl Clone for IDirectSoundBuffer8
§fn clone(&self) -> IDirectSoundBuffer8
fn clone(&self) -> IDirectSoundBuffer8
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 IDirectSoundBuffer8
impl Debug for IDirectSoundBuffer8
§impl Deref for IDirectSoundBuffer8
impl Deref for IDirectSoundBuffer8
§impl From<&IDirectSoundBuffer8> for &IDirectSoundBuffer
impl From<&IDirectSoundBuffer8> for &IDirectSoundBuffer
§fn from(value: &IDirectSoundBuffer8) -> Self
fn from(value: &IDirectSoundBuffer8) -> Self
Converts to this type from the input type.
§impl From<&IDirectSoundBuffer8> for &IUnknown
impl From<&IDirectSoundBuffer8> for &IUnknown
§fn from(value: &IDirectSoundBuffer8) -> Self
fn from(value: &IDirectSoundBuffer8) -> Self
Converts to this type from the input type.
§impl From<IDirectSoundBuffer8> for IDirectSoundBuffer
impl From<IDirectSoundBuffer8> for IDirectSoundBuffer
§fn from(value: IDirectSoundBuffer8) -> Self
fn from(value: IDirectSoundBuffer8) -> Self
Converts to this type from the input type.
§impl From<IDirectSoundBuffer8> for IUnknown
impl From<IDirectSoundBuffer8> for IUnknown
§fn from(value: IDirectSoundBuffer8) -> Self
fn from(value: IDirectSoundBuffer8) -> Self
Converts to this type from the input type.
§impl Interface for IDirectSoundBuffer8
impl Interface for IDirectSoundBuffer8
§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 IDirectSoundBuffer8
impl PartialEq for IDirectSoundBuffer8
impl Eq for IDirectSoundBuffer8
impl StructuralPartialEq for IDirectSoundBuffer8
Auto Trait Implementations§
impl Freeze for IDirectSoundBuffer8
impl RefUnwindSafe for IDirectSoundBuffer8
impl !Send for IDirectSoundBuffer8
impl !Sync for IDirectSoundBuffer8
impl Unpin for IDirectSoundBuffer8
impl UnwindSafe for IDirectSoundBuffer8
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