pub struct IAudioClient2(/* private fields */);Implementations§
Source§impl IAudioClient2
impl IAudioClient2
pub unsafe fn Initialize( &self, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: *mut Guid, ) -> HRESULT
pub unsafe fn GetBufferSize(&self, pnumbufferframes: *mut u32) -> HRESULT
pub unsafe fn GetStreamLatency(&self, phnslatency: *mut i64) -> HRESULT
pub unsafe fn GetCurrentPadding(&self, pnumpaddingframes: *mut u32) -> HRESULT
pub unsafe fn IsFormatSupported( &self, sharemode: AUDCLNT_SHAREMODE, pformat: *const WAVEFORMATEX, ppclosestmatch: *mut *mut WAVEFORMATEX, ) -> HRESULT
pub unsafe fn GetMixFormat( &self, ppdeviceformat: *mut *mut WAVEFORMATEX, ) -> HRESULT
pub unsafe fn GetDevicePeriod( &self, phnsdefaultdeviceperiod: *mut i64, phnsminimumdeviceperiod: *mut i64, ) -> HRESULT
pub unsafe fn Start(&self) -> HRESULT
pub unsafe fn Stop(&self) -> HRESULT
pub unsafe fn Reset(&self) -> HRESULT
pub unsafe fn SetEventHandle<'a>( &self, eventhandle: impl IntoParam<'a, HANDLE>, ) -> HRESULT
pub unsafe fn GetService( &self, riid: *const Guid, ppv: *mut *mut c_void, ) -> HRESULT
pub unsafe fn IsOffloadCapable( &self, category: AUDIO_STREAM_CATEGORY, pboffloadcapable: *mut BOOL, ) -> HRESULT
pub unsafe fn SetClientProperties( &self, pproperties: *const AudioClientProperties, ) -> HRESULT
pub unsafe fn GetBufferSizeLimits<'a>( &self, pformat: *const WAVEFORMATEX, beventdriven: impl IntoParam<'a, BOOL>, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64, ) -> HRESULT
Trait Implementations§
Source§impl Clone for IAudioClient2
impl Clone for IAudioClient2
Source§fn clone(&self) -> IAudioClient2
fn clone(&self) -> IAudioClient2
Returns a duplicate 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 moreSource§impl Debug for IAudioClient2
impl Debug for IAudioClient2
Source§impl From<&IAudioClient2> for IAudioClient
impl From<&IAudioClient2> for IAudioClient
Source§fn from(value: &IAudioClient2) -> Self
fn from(value: &IAudioClient2) -> Self
Converts to this type from the input type.
Source§impl From<&IAudioClient2> for IUnknown
impl From<&IAudioClient2> for IUnknown
Source§fn from(value: &IAudioClient2) -> Self
fn from(value: &IAudioClient2) -> Self
Converts to this type from the input type.
Source§impl From<&IAudioClient3> for IAudioClient2
impl From<&IAudioClient3> for IAudioClient2
Source§fn from(value: &IAudioClient3) -> Self
fn from(value: &IAudioClient3) -> Self
Converts to this type from the input type.
Source§impl From<IAudioClient2> for IAudioClient
impl From<IAudioClient2> for IAudioClient
Source§fn from(value: IAudioClient2) -> Self
fn from(value: IAudioClient2) -> Self
Converts to this type from the input type.
Source§impl From<IAudioClient2> for IUnknown
impl From<IAudioClient2> for IUnknown
Source§fn from(value: IAudioClient2) -> Self
fn from(value: IAudioClient2) -> Self
Converts to this type from the input type.
Source§impl From<IAudioClient3> for IAudioClient2
impl From<IAudioClient3> for IAudioClient2
Source§fn from(value: IAudioClient3) -> Self
fn from(value: IAudioClient3) -> Self
Converts to this type from the input type.
Source§impl Interface for IAudioClient2
impl Interface for IAudioClient2
const IID: Guid
type Vtable = IAudioClient2_abi
Source§impl<'a> IntoParam<'a, IAudioClient> for &'a IAudioClient2
impl<'a> IntoParam<'a, IAudioClient> for &'a IAudioClient2
fn into_param(self) -> Param<'a, IAudioClient>
Source§impl<'a> IntoParam<'a, IAudioClient> for IAudioClient2
impl<'a> IntoParam<'a, IAudioClient> for IAudioClient2
fn into_param(self) -> Param<'a, IAudioClient>
Source§impl<'a> IntoParam<'a, IAudioClient2> for &'a IAudioClient3
impl<'a> IntoParam<'a, IAudioClient2> for &'a IAudioClient3
fn into_param(self) -> Param<'a, IAudioClient2>
Source§impl<'a> IntoParam<'a, IAudioClient2> for IAudioClient3
impl<'a> IntoParam<'a, IAudioClient2> for IAudioClient3
fn into_param(self) -> Param<'a, IAudioClient2>
Source§impl<'a> IntoParam<'a, IUnknown> for &'a IAudioClient2
impl<'a> IntoParam<'a, IUnknown> for &'a IAudioClient2
fn into_param(self) -> Param<'a, IUnknown>
Source§impl<'a> IntoParam<'a, IUnknown> for IAudioClient2
impl<'a> IntoParam<'a, IUnknown> for IAudioClient2
fn into_param(self) -> Param<'a, IUnknown>
Source§impl PartialEq for IAudioClient2
impl PartialEq for IAudioClient2
impl Eq for IAudioClient2
impl StructuralPartialEq for IAudioClient2
Auto Trait Implementations§
impl Freeze for IAudioClient2
impl RefUnwindSafe for IAudioClient2
impl !Send for IAudioClient2
impl !Sync for IAudioClient2
impl Unpin for IAudioClient2
impl UnwindSafe for IAudioClient2
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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