Volume Control
Application-specific hotkeys for Windows
|
Manages a list of AudioSession instances and their related events for a single CoreAudio.AudioDevice instance. More...
Public Member Functions | |
AudioSession? | FindSessionBySessionInstanceIdentifier (string sessionInstanceIdentifier, StringComparison comparisonType=StringComparison.Ordinal) |
Gets the AudioSession instance associated with the given sessionInstanceIdentifier . (AudioSessionControl2.SessionInstanceIdentifier) More... | |
AudioSession? | FindSessionByAudioSessionControl (AudioSessionControl2 audioSessionControl) |
Gets the AudioSession instance associated with the given audioSessionControl instance. More... | |
void | Dispose () |
Properties | |
AudioDevice | AudioDevice [get] |
Gets the CoreAudio.AudioDevice instance that this AudioDeviceSessionManager instance is managing. More... | |
IReadOnlyList< AudioSession > | Sessions [get] |
Gets the list of AudioSession instances. More... | |
Events | |
EventHandler< AudioSession >? | SessionAddedToList |
Occurs when an AudioSession is added to the Sessions list for any reason. More... | |
EventHandler< AudioSession >? | SessionRemovedFromList |
Occurs when an AudioSession is removed from the Sessions list for any reason. More... | |
Manages a list of AudioSession instances and their related events for a single CoreAudio.AudioDevice instance.
This class is highly coupled to CoreAudio.AudioDevice, and cannot be constructed externally.
If you're looking for a session manager that works with multiple CoreAudio.AudioDevice instances, see AudioSessionManager.
AudioSession? VolumeControl.CoreAudio.AudioDeviceSessionManager.FindSessionByAudioSessionControl | ( | AudioSessionControl2 | audioSessionControl | ) |
Gets the AudioSession instance associated with the given audioSessionControl instance.
audioSessionControl | The AudioSessionControl2 instance associated with the target session. |
null
.AudioSession? VolumeControl.CoreAudio.AudioDeviceSessionManager.FindSessionBySessionInstanceIdentifier | ( | string | sessionInstanceIdentifier, |
StringComparison | comparisonType = StringComparison.Ordinal |
||
) |
Gets the AudioSession instance associated with the given sessionInstanceIdentifier . (AudioSessionControl2.SessionInstanceIdentifier)
sessionInstanceIdentifier | The SessionInstanceIdentifier GUID of the target session. |
comparisonType | The StringComparison type to use when comparing ID strings. |
null
.
|
get |
Gets the CoreAudio.AudioDevice instance that this AudioDeviceSessionManager instance is managing.
|
get |
Gets the list of AudioSession instances.
Referenced by VolumeControl.CoreAudio.AudioDeviceSessionManager.Dispose().
EventHandler<AudioSession>? VolumeControl.CoreAudio.AudioDeviceSessionManager.SessionAddedToList |
Occurs when an AudioSession is added to the Sessions list for any reason.
Referenced by VolumeControl.CoreAudio.AudioSessionManager.AddSessionManager(), and VolumeControl.CoreAudio.AudioSessionManager.RemoveSessionManager().
EventHandler<AudioSession>? VolumeControl.CoreAudio.AudioDeviceSessionManager.SessionRemovedFromList |
Occurs when an AudioSession is removed from the Sessions list for any reason.
Referenced by VolumeControl.CoreAudio.AudioSessionManager.AddSessionManager(), and VolumeControl.CoreAudio.AudioSessionManager.RemoveSessionManager().