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