TeamTalk 5 .NET DLL Version 5.15A
Loading...
Searching...
No Matches
BearWare.SoundDeviceConstants Struct Reference

IDs for sound devices. More...

Static Public Attributes

const int TT_SOUNDDEVICE_ID_REMOTEIO = 0
 Sound device ID for iOS AudioUnit subtype Remote I/O Unit.
 
const int TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO = (1 | (int)TT_SOUNDDEVICE_ID_SHARED_FLAG)
 Sound device ID for iOS AudioUnit subtype Voice-Processing I/O Unit. This sound device ID include the flag BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_SHARED_FLAG since multiple streams cannot be recorded/played on the device.
 
const int TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT = 0
 Sound device ID for Android OpenSL ES default audio device. Note that this sound device may also exist in the form where the nDeviceID as been or'ed with BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_SHARED_FLAG.
 
const int TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM = 1
 Sound device ID for Android OpenSL ES voice communication mode. This device uses the OpenSL ES' AndroidConfiguration SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION.
 
const int TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL = 1978
 Sound device ID for virtual TeamTalk sound device.
 
const uint TT_SOUNDDEVICE_ID_SHARED_FLAG = 0x00000800
 Flag/bit in nDeviceID telling if the BearWare.SoundDevice is a shared version of an existing sound device.
 
const uint TT_SOUNDDEVICE_ID_MASK = 0x000007FF
 Extract sound device ID of nDeviceID in BearWare.SoundDevice by and'ing this value.
 

Detailed Description

IDs for sound devices.

Definition at line 336 of file TeamTalk.cs.

Member Data Documentation

◆ TT_SOUNDDEVICE_ID_REMOTEIO

const int BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_REMOTEIO = 0
static

Sound device ID for iOS AudioUnit subtype Remote I/O Unit.

See also
SOUNDSYSTEM_AUDIOUNIT

Definition at line 340 of file TeamTalk.cs.

◆ TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO

const int BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO = (1 | (int)TT_SOUNDDEVICE_ID_SHARED_FLAG)
static

Sound device ID for iOS AudioUnit subtype Voice-Processing I/O Unit. This sound device ID include the flag BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_SHARED_FLAG since multiple streams cannot be recorded/played on the device.

See also
SoundSystem.SOUNDSYSTEM_AUDIOUNIT

Definition at line 346 of file TeamTalk.cs.

◆ TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT

const int BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT = 0
static

Sound device ID for Android OpenSL ES default audio device. Note that this sound device may also exist in the form where the nDeviceID as been or'ed with BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_SHARED_FLAG.

See also
SOUNDSYSTEM_OPENSLES_ANDROID

Definition at line 351 of file TeamTalk.cs.

◆ TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM

const int BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM = 1
static

Sound device ID for Android OpenSL ES voice communication mode. This device uses the OpenSL ES' AndroidConfiguration SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION.

See also
SoundSystem.SOUNDSYSTEM_OPENSLES_ANDROID

Definition at line 356 of file TeamTalk.cs.

◆ TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL

const int BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL = 1978
static

Sound device ID for virtual TeamTalk sound device.

This is a sound device which decodes received audio packets but does not send the decoded audio to a real sound device. When used for recording the virtual sound device injects silence.

In duplex mode the virtual TeamTalk sound device can only be used as input/output device.

See also
SOUNDSYSTEM_NONE

Definition at line 365 of file TeamTalk.cs.

◆ TT_SOUNDDEVICE_ID_SHARED_FLAG

const uint BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_SHARED_FLAG = 0x00000800
static

Flag/bit in nDeviceID telling if the BearWare.SoundDevice is a shared version of an existing sound device.

On Android the recording device can only be used by one TeamTalk instance. As a workaround for this issue a shared recording device has been introduced. Internally TeamTalk initializes BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT which then resample and distribution the audio data to multiple TeamTalk instances.

The shared audio device on Android will show up as (TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT | TT_SOUNDDEVICE_ID_SHARED_FLAG), i.e. 2048.

Definition at line 381 of file TeamTalk.cs.

◆ TT_SOUNDDEVICE_ID_MASK

const uint BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_MASK = 0x000007FF
static

Extract sound device ID of nDeviceID in BearWare.SoundDevice by and'ing this value.

let PhysicalDeviceID = (SoundDevice.nDeviceID & TT_SOUNDDEVICE_ID_MASK).

Definition at line 387 of file TeamTalk.cs.