Interface IAudioSessionEventsHandler
- Namespace
- NAudio.CoreAudioApi.Interfaces
- Assembly
- NAudio.Wasapi.dll
interface to receive session related events
public interface IAudioSessionEventsHandler
Methods
OnChannelVolumeChanged(uint, nint, uint)
notification of the client that the volume level of an audio channel in the session submix has changed
void OnChannelVolumeChanged(uint channelCount, nint newVolumes, uint channelIndex)
Parameters
channelCountuintThe channel count.
newVolumesnintAn array of volumnes cooresponding with each channel index.
channelIndexuintThe number of the channel whose volume level changed.
OnDisplayNameChanged(string)
notification of display name changed
void OnDisplayNameChanged(string displayName)
Parameters
displayNamestringthe current display name
OnGroupingParamChanged(ref Guid)
notification of the client that the grouping parameter for the session has changed
void OnGroupingParamChanged(ref Guid groupingId)
Parameters
groupingIdGuidThe new grouping parameter for the session.
OnIconPathChanged(string)
notification of icon path changed
void OnIconPathChanged(string iconPath)
Parameters
iconPathstringthe current icon path
OnSessionDisconnected(AudioSessionDisconnectReason)
notification of the client that the session has been disconnected
void OnSessionDisconnected(AudioSessionDisconnectReason disconnectReason)
Parameters
disconnectReasonAudioSessionDisconnectReasonThe reason that the audio session was disconnected.
OnStateChanged(AudioSessionState)
notification of the client that the stream-activity state of the session has changed
void OnStateChanged(AudioSessionState state)
Parameters
stateAudioSessionStateThe new session state.
OnVolumeChanged(float, bool)
notification of volume changes including muting of audio session
void OnVolumeChanged(float volume, bool isMuted)