Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OpenTok.AudioDevice.Notifications

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< InputAudioDeviceEventArgsInputDeviceAdded
 Sent when a new audio input device is detected by the system. More...
EventHandler< OutputAudioDeviceEventArgsOutputDeviceAdded
 Sent when a new audio output device is detected by the system. More...
EventHandler< InputAudioDeviceEventArgsInputDeviceRemoved
 Sent when an audio input device is removed from the system. More...
EventHandler< OutputAudioDeviceEventArgsOutputDeviceRemoved
 Sent when an audio output device is removed from the system. More...
EventHandler< InputAudioDeviceEventArgsDefaultInputDeviceChanged
 Sent when the default audio input device changes at the system level. More...
EventHandler< OutputAudioDeviceEventArgsDefaultOutputDeviceChanged
 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.