Struct wasapi::Windows::Win32::Media::Audio::CoreAudio::IAudioClient [−][src]
#[repr(transparent)]pub struct IAudioClient(_);
Implementations
pub unsafe fn Initialize(
&self,
sharemode: AUDCLNT_SHAREMODE,
streamflags: u32,
hnsbufferduration: i64,
hnsperiodicity: i64,
pformat: *const WAVEFORMATEX,
audiosessionguid: *const Guid
) -> Result<()>
pub unsafe fn IsFormatSupported(
&self,
sharemode: AUDCLNT_SHAREMODE,
pformat: *const WAVEFORMATEX,
ppclosestmatch: *mut *mut WAVEFORMATEX
) -> Result<()>
pub unsafe fn GetDevicePeriod(
&self,
phnsdefaultdeviceperiod: *mut i64,
phnsminimumdeviceperiod: *mut i64
) -> Result<()>
pub unsafe fn SetEventHandle<'a>(
&self,
eventhandle: impl IntoParam<'a, HANDLE>
) -> Result<()>
Trait Implementations
Performs the conversion.
Performs the conversion.
type Vtable = IAudioClient_abi
unsafe fn vtable(&self) -> &Self::Vtable
unsafe fn vtable(&self) -> &Self::Vtable
Returns the vtable for the current interface.
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtable where
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtable where
T: Interface,
Returns the vtable for an assumed interface. The name comes from Box::assume_init()
as
it assumes the vtable is implemented by the current interface’s vtable (e.g. a parent interface). Read more
Attempts to cast the current interface to another interface using QueryInterface
.
The name cast
is preferred to query
because there is a WinRT method named query but not one
named cast. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for IAudioClient
impl !Send for IAudioClient
impl !Sync for IAudioClient
impl Unpin for IAudioClient
impl UnwindSafe for IAudioClient
Blanket Implementations
Returns a pointer for setting the object’s value via an ABI call.
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn abi(&self) -> Self::Abi
fn abi(&self) -> Self::Abi
Casts the Rust object to its ABI type without copying the object.
fn drop_param(&mut Param<'_, Self>)
Mutably borrows from an owned value. Read more
pub fn into_param(self) -> Param<'a, T>