Suggestions

close search

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

Visit the Vonage API Developer Portal

OpenTok.AudioDevice

A class that includes methods for setting the audio device to be used by publishers and subscribers. More...

Classes

class  AudioBus
 An audio bus used for all publisher and subscribers. This class is used to both read and write audio samples in order for them to be rendered or sent to remote peers. More...
class  InputAudioDevice
 Represents an input audio device (such as a microphone) available on the Windows system. See EnumerateInputAudioDevices and SetInputAudioDevice. More...

Static Public Member Functions

static IList< InputAudioDeviceEnumerateInputAudioDevices ()
 Returns a list of available audio input devices on the system. More...
static void SetInputAudioDevice (InputAudioDevice audioInput)
 Sets the input audio device to be used by all publishers. See EnumerateInputAudioDevices. You must call this method after you create the first publisher used by your app. If you call the method before you create the publisher, it will use the default input device, not the specified device. More...
static void SetCustomAudioDevice (Context context, IAudioDevice audioDevice)
 Sets an instance of the IAudioDevice interface as the virtual audio device for a custom audio driver used by all publishers and subscribers. More...

Detailed Description

A class that includes methods for setting the audio device to be used by publishers and subscribers.

Member Function Documentation

◆ EnumerateInputAudioDevices()

static IList<InputAudioDevice> OpenTok.AudioDevice.EnumerateInputAudioDevices ( )

Returns a list of available audio input devices on the system.

Returns
A list of InputAudioDevice objects, representing available Audio input devices on the system.

◆ SetCustomAudioDevice()

static void OpenTok.AudioDevice.SetCustomAudioDevice ( Context  context,
IAudioDevice  audioDevice 
)

Sets an instance of the IAudioDevice interface as the virtual audio device for a custom audio driver used by all publishers and subscribers.

Returns
void

◆ SetInputAudioDevice()

static void OpenTok.AudioDevice.SetInputAudioDevice ( InputAudioDevice  audioInput)

Sets the input audio device to be used by all publishers. See EnumerateInputAudioDevices. You must call this method after you create the first publisher used by your app. If you call the method before you create the publisher, it will use the default input device, not the specified device.

Returns
void