Struct windows::Win32::Media::Audio::DirectSound::IDirectSoundCaptureBuffer
pub struct IDirectSoundCaptureBuffer(/* private fields */);
Implementations§
§impl IDirectSoundCaptureBuffer
impl 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 IDirectSoundCaptureBuffer
impl Clone for IDirectSoundCaptureBuffer
§fn clone(&self) -> IDirectSoundCaptureBuffer
fn clone(&self) -> IDirectSoundCaptureBuffer
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 IDirectSoundCaptureBuffer
impl Debug for IDirectSoundCaptureBuffer
§impl Deref for IDirectSoundCaptureBuffer
impl Deref for IDirectSoundCaptureBuffer
§impl From<&IDirectSoundCaptureBuffer> for &IUnknown
impl From<&IDirectSoundCaptureBuffer> for &IUnknown
§fn from(value: &IDirectSoundCaptureBuffer) -> Self
fn from(value: &IDirectSoundCaptureBuffer) -> 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<IDirectSoundCaptureBuffer> for IUnknown
impl From<IDirectSoundCaptureBuffer> for IUnknown
§fn from(value: IDirectSoundCaptureBuffer) -> Self
fn from(value: IDirectSoundCaptureBuffer) -> 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 Interface for IDirectSoundCaptureBuffer
impl Interface for IDirectSoundCaptureBuffer
§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 IDirectSoundCaptureBuffer
impl PartialEq for IDirectSoundCaptureBuffer
§fn eq(&self, other: &IDirectSoundCaptureBuffer) -> bool
fn eq(&self, other: &IDirectSoundCaptureBuffer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDirectSoundCaptureBuffer
impl StructuralPartialEq for IDirectSoundCaptureBuffer
Auto Trait Implementations§
impl Freeze for IDirectSoundCaptureBuffer
impl RefUnwindSafe for IDirectSoundCaptureBuffer
impl !Send for IDirectSoundCaptureBuffer
impl !Sync for IDirectSoundCaptureBuffer
impl Unpin for IDirectSoundCaptureBuffer
impl UnwindSafe for IDirectSoundCaptureBuffer
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