#[repr(C)]pub struct IDirectSoundBuffer {
pub lpVtbl: *const IDirectSoundBufferVtbl,
}
Fields§
§lpVtbl: *const IDirectSoundBufferVtbl
Implementations§
Source§impl IDirectSoundBuffer
impl IDirectSoundBuffer
pub unsafe fn GetCaps(&self, pDSBufferCaps: LPDSBCAPS) -> HRESULT
pub unsafe fn GetCurrentPosition( &self, pdwCurrentPlayCursor: LPDWORD, pdwCurrentWriteCursor: LPDWORD, ) -> HRESULT
pub unsafe fn GetFormat( &self, pwfxFormat: LPWAVEFORMATEX, dwSizeAllocated: DWORD, pdwSizeWritten: LPDWORD, ) -> HRESULT
pub unsafe fn GetVolume(&self, plVolume: LPLONG) -> HRESULT
pub unsafe fn GetPan(&self, plPan: LPLONG) -> HRESULT
pub unsafe fn GetFrequency(&self, pdwFrequency: LPDWORD) -> HRESULT
pub unsafe fn GetStatus(&self, pdwStatus: LPDWORD) -> HRESULT
pub unsafe fn Initialize( &self, pDirectSound: LPDIRECTSOUND, pcDSBufferDesc: LPCDSBUFFERDESC, ) -> HRESULT
pub unsafe fn Lock( &self, dwOffset: DWORD, dwBytes: DWORD, ppvAudioPtr1: *mut LPVOID, pdwAudioBytes1: LPDWORD, ppvAudioPtr2: *mut LPVOID, pdwAudioBytes2: LPDWORD, dwFlags: DWORD, ) -> HRESULT
pub unsafe fn Play( &self, dwReserved1: DWORD, dwPriority: DWORD, dwFlags: DWORD, ) -> HRESULT
pub unsafe fn SetCurrentPosition(&self, dwNewPosition: DWORD) -> HRESULT
pub unsafe fn SetFormat(&self, pcfxFormat: LPCWAVEFORMATEX) -> HRESULT
pub unsafe fn SetVolume(&self, lVolume: LONG) -> HRESULT
pub unsafe fn SetPan(&self, lPan: LONG) -> HRESULT
pub unsafe fn SetFrequency(&self, dwFrequency: DWORD) -> HRESULT
pub unsafe fn Stop(&self) -> HRESULT
pub unsafe fn Unlock( &self, pvAudioPtr1: LPVOID, dwAudioBytes1: DWORD, pvAudioPtr2: LPVOID, dwAudioBytes2: DWORD, ) -> HRESULT
pub unsafe fn Restore(&self) -> HRESULT
Trait Implementations§
Source§impl Deref for IDirectSoundBuffer
impl Deref for IDirectSoundBuffer
Auto Trait Implementations§
impl Freeze for IDirectSoundBuffer
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