IAudioSessionEventsOnSimpleVolumeChanged Method
Notifies the client that the volume level or muting state of the session has changed.
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult OnSimpleVolumeChanged(
float volume,
bool isMuted,
in Guid refEventContext
)
<PreserveSigAttribute>
Function OnSimpleVolumeChanged (
volume As Single,
isMuted As Boolean,
ByRef refEventContext As Guid
) As HResult
Dim instance As IAudioSessionEvents
Dim volume As Single
Dim isMuted As Boolean
Dim refEventContext As Guid
Dim returnValue As HResult
returnValue = instance.OnSimpleVolumeChanged(volume,
isMuted, refEventContext)
[PreserveSigAttribute]
HResult OnSimpleVolumeChanged(
[InAttribute] float volume,
[InAttribute] bool isMuted,
[InAttribute] Guid% refEventContext
)
[<PreserveSigAttribute>]
abstract OnSimpleVolumeChanged :
volume : float32 *
isMuted : bool *
refEventContext : Guid byref -> HResult
No code example is currently available or this language may not be supported.
- volume Single
-
The new volume level for the audio session.
- isMuted Boolean
-
The new muting state.
- refEventContext Guid
-
A user context value that is passed to the notification callback.
HResult
If the method succeeds, it returns
S_OK.
If it fails, it returns an
HResult value.