TeamTalk 4 .NET DLL  Version 4.5A
BearWare.SoundDevice Struct Reference

A struct containing the properties of a sound device for either playback or recording. More...

Public Attributes

int nDeviceID
 The ID of the sound device. Used for passing to TeamTalk4.InitSoundInputDevice() and TeamTalk4.InitSoundOutputDevice(). Note that nDeviceID might change if USB sound devices are plugged in or unplugged, therefore use szDeviceID to ensure proper device is used. More...
 
SoundSystem nSoundSystem
 The sound system used by the sound device. More...
 
string szDeviceName
 The name of the sound device. More...
 
string szDeviceID
 An identifier uniquely identifying the sound device even when new sound devices are being added and removed. In DirectSound, WASAPI and WinMM it would be the GUID of the sound device. Note that it may not always be available. More...
 
int nWaveDeviceID
 The ID of the device used in Win32's waveInGetDevCaps and waveOutGetDevCaps. More...
 
bool bSupports3D
 Whether the sound device supports 3D-sound effects. More...
 
int nMaxInputChannels
 The maximum number of input channels. More...
 
int nMaxOutputChannels
 The maximum number of output channels. More...
 
int[] supportedSampleRates
 Supported sample rates by device. A zero value terminates the list of supported sample rates or its maximum size of 16. Investigating the support sample rates is usually only required on Linux since sound devices often don't numerous sample rates. More...
 
int nDefaultSampleRate
 The default sample rate for the sound device. More...
 

Detailed Description

A struct containing the properties of a sound device for either playback or recording.

Use nDeviceID to pass to TeamTalk4.InitSoundInputDevice() or TeamTalk4.InitSoundOutputDevice().

Note that the nDeviceID may change if the user application is restarted and a new sound device is added or removed from the computer.

See Also
TeamTalk4.GetSoundInputDevices
TeamTalk4.GetSoundOutputDevices

Member Data Documentation

int BearWare.SoundDevice.nDeviceID

The ID of the sound device. Used for passing to TeamTalk4.InitSoundInputDevice() and TeamTalk4.InitSoundOutputDevice(). Note that nDeviceID might change if USB sound devices are plugged in or unplugged, therefore use szDeviceID to ensure proper device is used.

SoundSystem BearWare.SoundDevice.nSoundSystem

The sound system used by the sound device.

string BearWare.SoundDevice.szDeviceName

The name of the sound device.

string BearWare.SoundDevice.szDeviceID

An identifier uniquely identifying the sound device even when new sound devices are being added and removed. In DirectSound, WASAPI and WinMM it would be the GUID of the sound device. Note that it may not always be available.

int BearWare.SoundDevice.nWaveDeviceID

The ID of the device used in Win32's waveInGetDevCaps and waveOutGetDevCaps.

Value will be -1 if no ID could be found This ID can also be used to find the corresponding mixer on Windows passing it as nWaveDeviceID. Note that this ID applies both to DirectSound and WinMM.

See Also
WindowsMixer.GetWaveInName
WindowsMixer.GetWaveOutName
WindowsMixer.GetMixerCount
bool BearWare.SoundDevice.bSupports3D

Whether the sound device supports 3D-sound effects.

int BearWare.SoundDevice.nMaxInputChannels

The maximum number of input channels.

int BearWare.SoundDevice.nMaxOutputChannels

The maximum number of output channels.

int [] BearWare.SoundDevice.supportedSampleRates

Supported sample rates by device. A zero value terminates the list of supported sample rates or its maximum size of 16. Investigating the support sample rates is usually only required on Linux since sound devices often don't numerous sample rates.

int BearWare.SoundDevice.nDefaultSampleRate

The default sample rate for the sound device.