OpenTok Windows SDK
Classes | Public Member Functions | Protected Member Functions | Events | List of all members
OpenTok.AudioDevice.Notifications Class Reference

Represents a subscription to system audio device notifications. This object sends events when a system input or output audio device is added or removed, and when the default system input or output audio device changes. This instance can be disposed when no longer used to release unmanaged resources. More...

Inherits IDisposable.

Classes

class  InputAudioDeviceEventArgs
 Contains the arguments for audio input device events. More...
 
class  OutputAudioDeviceEventArgs
 Contains the arguments for audio output device events. More...
 

Public Member Functions

 Notifications (IDispatcher dispatcher)
 Builds an AudioDevice.Notifications object using the provided dispatcher. More...
 
void Dispose ()
 Disposes the AudioDevice.Notifications instance. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Events

EventHandler< InputAudioDeviceEventArgs > InputDeviceAdded
 Sent when a new audio input device is detected by the system. More...
 
EventHandler< OutputAudioDeviceEventArgs > OutputDeviceAdded
 Sent when a new audio output device is detected by the system. More...
 
EventHandler< InputAudioDeviceEventArgs > InputDeviceRemoved
 Sent when an audio input device is removed from the system. More...
 
EventHandler< OutputAudioDeviceEventArgs > OutputDeviceRemoved
 Sent when an audio output device is removed from the system. More...
 
EventHandler< InputAudioDeviceEventArgs > DefaultInputDeviceChanged
 Sent when the default audio input device changes at the system level. More...
 
EventHandler< OutputAudioDeviceEventArgs > DefaultOutputDeviceChanged
 Sent when the default audio output device changes at the system level. More...
 

Detailed Description

Represents a subscription to system audio device notifications. This object sends events when a system input or output audio device is added or removed, and when the default system input or output audio device changes. This instance can be disposed when no longer used to release unmanaged resources.

Constructor & Destructor Documentation

◆ Notifications()

OpenTok.AudioDevice.Notifications.Notifications ( IDispatcher  dispatcher)

Builds an AudioDevice.Notifications object using the provided dispatcher.

Parameters
dispatcherThe IDispatcher used to queue received events.

Member Function Documentation

◆ Dispose()

void OpenTok.AudioDevice.Notifications.Dispose ( )

Disposes the AudioDevice.Notifications instance.

Event Documentation

◆ DefaultInputDeviceChanged

EventHandler<InputAudioDeviceEventArgs> OpenTok.AudioDevice.Notifications.DefaultInputDeviceChanged

Sent when the default audio input device changes at the system level.

◆ DefaultOutputDeviceChanged

EventHandler<OutputAudioDeviceEventArgs> OpenTok.AudioDevice.Notifications.DefaultOutputDeviceChanged

Sent when the default audio output device changes at the system level.

◆ InputDeviceAdded

EventHandler<InputAudioDeviceEventArgs> OpenTok.AudioDevice.Notifications.InputDeviceAdded

Sent when a new audio input device is detected by the system.

◆ InputDeviceRemoved

EventHandler<InputAudioDeviceEventArgs> OpenTok.AudioDevice.Notifications.InputDeviceRemoved

Sent when an audio input device is removed from the system.

◆ OutputDeviceAdded

EventHandler<OutputAudioDeviceEventArgs> OpenTok.AudioDevice.Notifications.OutputDeviceAdded

Sent when a new audio output device is detected by the system.

◆ OutputDeviceRemoved

EventHandler<OutputAudioDeviceEventArgs> OpenTok.AudioDevice.Notifications.OutputDeviceRemoved

Sent when an audio output device is removed from the system.


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