Volume Control
Application-specific hotkeys for Windows
VolumeControl.CoreAudio.AudioSessionSelector Class Reference

Manages the currently "selected" AudioSession instance for a given CoreAudio.AudioSessionManager object. More...

Inheritance diagram for VolumeControl.CoreAudio.AudioSessionSelector:
Collaboration diagram for VolumeControl.CoreAudio.AudioSessionSelector:

Public Member Functions

 AudioSessionSelector (AudioSessionManager audioSessionManager)
 Creates a new AudioSessionSelector instance bound to the given audioSessionManager . More...
 
void SelectNextSession ()
 Changes the Selected item to the next session in the list, looping back if necessary. More...
 
void SelectPreviousSession ()
 Changes the Selected item to the previous session in the list, looping back if necessary. More...
 
void DeselectSession ()
 Changes the Selected item to null. More...
 

Properties

AudioSessionSelected [get, set]
 Gets or the sets the selected item. More...
 
int SelectedIndex [get, set]
 
bool LockSelection [get, set]
 
- Properties inherited from VolumeControl.CoreAudio.Interfaces.IAudioSelector
int SelectedIndex [get, set]
 Gets or sets the currently selected item by its index in the list. More...
 
bool LockSelection [get, set]
 Gets or sets whether the selected item can be changed or not. More...
 

Events

PropertyChangedEventHandler? PropertyChanged
 

Detailed Description

Manages the currently "selected" AudioSession instance for a given CoreAudio.AudioSessionManager object.

Constructor & Destructor Documentation

◆ AudioSessionSelector()

VolumeControl.CoreAudio.AudioSessionSelector.AudioSessionSelector ( AudioSessionManager  audioSessionManager)

Creates a new AudioSessionSelector instance bound to the given audioSessionManager .

Parameters
audioSessionManagerAn CoreAudio.AudioSessionManager instance to select from.

References VolumeControl.CoreAudio.AudioSessionManager.RemovedSessionFromList.

Member Function Documentation

◆ DeselectSession()

void VolumeControl.CoreAudio.AudioSessionSelector.DeselectSession ( )

◆ SelectNextSession()

void VolumeControl.CoreAudio.AudioSessionSelector.SelectNextSession ( )

Changes the Selected item to the next session in the list, looping back if necessary.

Does nothing if LockSelection == true.

References VolumeControl.CoreAudio.AudioSessionSelector.LockSelection, VolumeControl.CoreAudio.AudioSessionSelector.SelectedIndex, and VolumeControl.CoreAudio.AudioSessionManager.Sessions.

◆ SelectPreviousSession()

void VolumeControl.CoreAudio.AudioSessionSelector.SelectPreviousSession ( )

Changes the Selected item to the previous session in the list, looping back if necessary.

Does nothing if LockSelection == true.

References VolumeControl.CoreAudio.AudioSessionSelector.LockSelection, VolumeControl.CoreAudio.AudioSessionSelector.SelectedIndex, and VolumeControl.CoreAudio.AudioSessionManager.Sessions.

Property Documentation

◆ Selected

AudioSession? VolumeControl.CoreAudio.AudioSessionSelector.Selected
getset

Gets or the sets the selected item.

Cannot be changed if LockSelection == true.

Referenced by VolumeControl.CoreAudio.AudioSessionSelector.DeselectSession().


The documentation for this class was generated from the following file: