Struct windows::Win32::Media::Audio::IAudioSessionEvents
pub struct IAudioSessionEvents(/* private fields */);
Implementations§
§impl IAudioSessionEvents
impl IAudioSessionEvents
pub unsafe fn OnDisplayNameChanged<P0>(
&self,
newdisplayname: P0,
eventcontext: *const GUID
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn OnIconPathChanged<P0>(
&self,
newiconpath: P0,
eventcontext: *const GUID
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn OnSimpleVolumeChanged<P0>(
&self,
newvolume: f32,
newmute: P0,
eventcontext: *const GUID
) -> Result<()>where
P0: IntoParam<BOOL>,
pub unsafe fn OnChannelVolumeChanged( &self, newchannelvolumearray: &[f32], changedchannel: u32, eventcontext: *const GUID ) -> Result<()>
pub unsafe fn OnGroupingParamChanged( &self, newgroupingparam: *const GUID, eventcontext: *const GUID ) -> Result<()>
pub unsafe fn OnStateChanged(&self, newstate: AudioSessionState) -> Result<()>
pub unsafe fn OnSessionDisconnected( &self, disconnectreason: AudioSessionDisconnectReason ) -> Result<()>
Trait Implementations§
§impl Clone for IAudioSessionEvents
impl Clone for IAudioSessionEvents
§fn clone(&self) -> IAudioSessionEvents
fn clone(&self) -> IAudioSessionEvents
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 IAudioSessionEvents
impl Debug for IAudioSessionEvents
§impl From<&IAudioSessionEvents> for &IUnknown
impl From<&IAudioSessionEvents> for &IUnknown
§fn from(value: &IAudioSessionEvents) -> Self
fn from(value: &IAudioSessionEvents) -> Self
Converts to this type from the input type.
§impl From<IAudioSessionEvents> for IUnknown
impl From<IAudioSessionEvents> for IUnknown
§fn from(value: IAudioSessionEvents) -> Self
fn from(value: IAudioSessionEvents) -> Self
Converts to this type from the input type.
§impl Interface for IAudioSessionEvents
impl Interface for IAudioSessionEvents
§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 IAudioSessionEvents
impl PartialEq for IAudioSessionEvents
§fn eq(&self, other: &IAudioSessionEvents) -> bool
fn eq(&self, other: &IAudioSessionEvents) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IAudioSessionEvents
impl StructuralPartialEq for IAudioSessionEvents
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§
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