TwclAudioSwitcher Class
The class provides functional to select system default audio device.
type TwclAudioSwitcher = class(TwclCustomAudio) end;
The TwclAudioSwitcher type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates new Audio Switcher component. (Overrides TwclCustomAudio.Create(TComponent).) |
Name | Description | |
---|---|---|
Active | Gets the Audio Switcher state. (Inherited from TwclCustomAudio.) | |
Enumerator | Gets the Audio devices enumerator interface. (Inherited from TwclCustomAudio.) | |
OnClosed | The event fires when the Audio Switcher was closed. (Inherited from TwclCustomAudio.) | |
OnOpened | The event fires when the Audio Switcher was opened. (Inherited from TwclCustomAudio.) | |
Receiver | Gets the message receiver. (Inherited from TwclCustomAudio.) |
Name | Description | |
---|---|---|
Close | Closes the Audio component. (Inherited from TwclCustomAudio.) | |
Connect(Int64) | Overloaded. Connects to the specified Audio Device. | |
Connect(string) | Overloaded. Connects to the specified Audio Device. | |
Disconnect(Int64) | Overloaded. Disconnects from the specified Audio Device. | |
Disconnect(string) | Overloaded. Disconnects from the specified Audio Device. | |
DoClosed | Calls the | |
DoDefaultDeviceChanged(string,TwclAudioDeviceDataFlow,TwclAudioDeviceRole) | Calls the | |
DoDeviceAdded(string) | Calls the | |
DoDeviceRemoved(string) | Calls the | |
DoOpened | Calls the | |
DoStateChanged(string,TwclAudioDeviceState) | Calls the | |
Enum(TwclAudioDeviceStates,TwclAudioDevices) | Enumerates available audio devices. | |
GetDefault(TwclAudioDeviceRole,TwclAudioDeviceDataFlow,string) | Gets the default Audio Device for the specified Role and Data Flow. | |
GetDeviceDetails(string,TwclAudioDevice) | Gets the specified Audio Device information. | |
InternalClose | The method called during audio subsystem finalization. (Inherited from TwclCustomAudio.) | |
InternalOpen | The method called during audio subsystem initialization. (Inherited from TwclCustomAudio.) | |
MessageReceived(TwclMessage) | The method called when a new notification message received. (Overrides TwclCustomAudio.MessageReceived(TwclMessage).) | |
Open | Opens the Audio Switcher component. (Overrides TwclCustomAudio.Open.) | |
SetDefault(TwclAudioDeviceRole,string) | Sets the specified Audio Device as default for the specified Role. |
Name | Description | |
---|---|---|
OnDefaultDeviceChanged | The event fires when default audio device changed. | |
OnDeviceAdded | The event fires when new audio device added. | |
OnDeviceRemoved | The event fires when audio device removed. | |
OnStateChanged | The event fires when audio device state changed. |