Struct windows::Win32::Media::Audio::DirectSound::IDirectSoundCaptureBuffer8
pub struct IDirectSoundCaptureBuffer8(/* private fields */);
Implementations§
Methods from Deref<Target = IDirectSoundCaptureBuffer>§
pub unsafe fn GetCaps(&self) -> Result<DSCBCAPS>
pub unsafe fn GetCurrentPosition( &self, pdwcaptureposition: Option<*mut u32>, pdwreadposition: Option<*mut u32> ) -> Result<()>
pub unsafe fn GetFormat( &self, pwfxformat: Option<*mut WAVEFORMATEX>, dwsizeallocated: u32, pdwsizewritten: Option<*mut u32> ) -> Result<()>
pub unsafe fn GetStatus(&self) -> Result<u32>
pub unsafe fn Initialize<P0>(
&self,
pdirectsoundcapture: P0,
pcdscbufferdesc: *const DSCBUFFERDESC
) -> Result<()>where
P0: Param<IDirectSoundCapture>,
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 Start(&self, dwflags: 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<()>
Trait Implementations§
§impl Clone for IDirectSoundCaptureBuffer8
impl Clone for IDirectSoundCaptureBuffer8
§fn clone(&self) -> IDirectSoundCaptureBuffer8
fn clone(&self) -> IDirectSoundCaptureBuffer8
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 IDirectSoundCaptureBuffer8
impl Debug for IDirectSoundCaptureBuffer8
§impl Deref for IDirectSoundCaptureBuffer8
impl Deref for IDirectSoundCaptureBuffer8
§impl From<&IDirectSoundCaptureBuffer8> for &IDirectSoundCaptureBuffer
impl From<&IDirectSoundCaptureBuffer8> for &IDirectSoundCaptureBuffer
§fn from(value: &IDirectSoundCaptureBuffer8) -> Self
fn from(value: &IDirectSoundCaptureBuffer8) -> Self
Converts to this type from the input type.
§impl From<&IDirectSoundCaptureBuffer8> for &IUnknown
impl From<&IDirectSoundCaptureBuffer8> for &IUnknown
§fn from(value: &IDirectSoundCaptureBuffer8) -> Self
fn from(value: &IDirectSoundCaptureBuffer8) -> Self
Converts to this type from the input type.
§impl From<IDirectSoundCaptureBuffer8> for IDirectSoundCaptureBuffer
impl From<IDirectSoundCaptureBuffer8> for IDirectSoundCaptureBuffer
§fn from(value: IDirectSoundCaptureBuffer8) -> Self
fn from(value: IDirectSoundCaptureBuffer8) -> Self
Converts to this type from the input type.
§impl From<IDirectSoundCaptureBuffer8> for IUnknown
impl From<IDirectSoundCaptureBuffer8> for IUnknown
§fn from(value: IDirectSoundCaptureBuffer8) -> Self
fn from(value: IDirectSoundCaptureBuffer8) -> Self
Converts to this type from the input type.
§impl Interface for IDirectSoundCaptureBuffer8
impl Interface for IDirectSoundCaptureBuffer8
§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 IDirectSoundCaptureBuffer8
impl PartialEq for IDirectSoundCaptureBuffer8
§fn eq(&self, other: &IDirectSoundCaptureBuffer8) -> bool
fn eq(&self, other: &IDirectSoundCaptureBuffer8) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDirectSoundCaptureBuffer8
impl StructuralPartialEq for IDirectSoundCaptureBuffer8
Auto Trait Implementations§
impl Freeze for IDirectSoundCaptureBuffer8
impl RefUnwindSafe for IDirectSoundCaptureBuffer8
impl !Send for IDirectSoundCaptureBuffer8
impl !Sync for IDirectSoundCaptureBuffer8
impl Unpin for IDirectSoundCaptureBuffer8
impl UnwindSafe for IDirectSoundCaptureBuffer8
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