Struct wasapi::Windows::Win32::Media::Audio::CoreAudio::IAudioSessionEvents [−][src]
#[repr(transparent)]pub struct IAudioSessionEvents(_);
Implementations
pub unsafe fn OnDisplayNameChanged<'a>(
&self,
newdisplayname: impl IntoParam<'a, PWSTR>,
eventcontext: *const Guid
) -> Result<()>
pub unsafe fn OnIconPathChanged<'a>(
&self,
newiconpath: impl IntoParam<'a, PWSTR>,
eventcontext: *const Guid
) -> Result<()>
pub unsafe fn OnSimpleVolumeChanged<'a>(
&self,
newvolume: f32,
newmute: impl IntoParam<'a, BOOL>,
eventcontext: *const Guid
) -> Result<()>
pub unsafe fn OnChannelVolumeChanged(
&self,
channelcount: u32,
newchannelvolumearray: *mut f32,
changedchannel: u32,
eventcontext: *const Guid
) -> Result<()>
pub unsafe fn OnGroupingParamChanged(
&self,
newgroupingparam: *const Guid,
eventcontext: *const Guid
) -> Result<()>
pub unsafe fn OnSessionDisconnected(
&self,
disconnectreason: AudioSessionDisconnectReason
) -> Result<()>
Trait Implementations
Performs the conversion.
Performs the conversion.
type Vtable = IAudioSessionEvents_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 IAudioSessionEvents
impl !Send for IAudioSessionEvents
impl !Sync for IAudioSessionEvents
impl Unpin for IAudioSessionEvents
impl UnwindSafe for IAudioSessionEvents
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>