TeamTalk 5 Java DLL: /cygdrive/c/tt5dist/TeamTalk5_x86/TeamTalk5/Library/TeamTalk.NET/TeamTalk.cs Source File

TeamTalk 5 Java DLL Version 5.8B

TeamTalk.cs
1 /*
2 * Copyright (c) 2005-2018, BearWare.dk
3 *
4 * Contact Information:
5 *
6 * Bjoern D. Rasmussen
7 * Kirketoften 5
8 * DK-8260 Viby J
9 * Denmark
10 * Email: contact@bearware.dk
11 * Phone: +45 20 20 54 59
12 * Web: http://www.bearware.dk
13 *
14 * This source code is part of the TeamTalk SDK owned by
15 * BearWare.dk. Use of this file, or its compiled unit, requires a
16 * TeamTalk SDK License Key issued by BearWare.dk.
17 *
18 * The TeamTalk SDK License Agreement along with its Terms and
19 * Conditions are outlined in the file License.txt included with the
20 * TeamTalk SDK distribution.
21 *
22 */
23
24 using System;
25 using System.Collections.Generic;
26 using System.Text;
27 using System.Windows.Forms;
28 using System.Drawing;
29 using System.Drawing.Imaging;
30 using System.Threading;
31 using System.Diagnostics;
32 using System.Reflection;
33 using System.Runtime.InteropServices;
34 using c_tt;
35
36 namespace BearWare
37 {
43 [Flags]
44 public enum StreamType : uint
45 {
47 STREAMTYPE_NONE = 0x00000000,
50 STREAMTYPE_VOICE = 0x00000001,
53 STREAMTYPE_VIDEOCAPTURE = 0x00000002,
56 STREAMTYPE_MEDIAFILE_AUDIO = 0x00000004,
59 STREAMTYPE_MEDIAFILE_VIDEO = 0x00000008,
62 STREAMTYPE_DESKTOP = 0x00000010,
66 STREAMTYPE_DESKTOPINPUT = 0x00000020,
68 STREAMTYPE_MEDIAFILE = STREAMTYPE_MEDIAFILE_AUDIO |
69 STREAMTYPE_MEDIAFILE_VIDEO,
78 STREAMTYPE_CHANNELMSG = 0x00000040,
84 STREAMTYPE_LOCALMEDIAPLAYBACK_AUDIO = 0x00000080,
85
88 STREAMTYPE_CLASSROOM_ALL = STREAMTYPE_VOICE |
89 STREAMTYPE_VIDEOCAPTURE |
90 STREAMTYPE_DESKTOP |
91 STREAMTYPE_MEDIAFILE |
92 STREAMTYPE_CHANNELMSG,
93 }
106 public enum SoundSystem : uint
107 {
109 SOUNDSYSTEM_NONE = 0,
111 SOUNDSYSTEM_WINMM = 1,
113 SOUNDSYSTEM_DSOUND = 2,
121 SOUNDSYSTEM_ALSA = 3,
123 SOUNDSYSTEM_COREAUDIO = 4,
134 SOUNDSYSTEM_WASAPI = 5,
136 SOUNDSYSTEM_OPENSLES_ANDROID = 7,
152 SOUNDSYSTEM_AUDIOUNIT = 8,
154 SOUNDSYSTEM_AUDIOUNIT_IOS = SOUNDSYSTEM_AUDIOUNIT,
155 }
156
161 [Flags]
162 public enum SoundDeviceFeature : uint
163 {
164 SOUNDDEVICEFEATURE_NONE = 0x0000,
170 SOUNDDEVICEFEATURE_AEC = 0x0001,
176 SOUNDDEVICEFEATURE_AGC = 0x0002,
181 SOUNDDEVICEFEATURE_DENOISE = 0x0004,
184 SOUNDDEVICEFEATURE_3DPOSITION = 0x0008,
187 SOUNDDEVICEFEATURE_DUPLEXMODE = 0x0010,
190 SOUNDDEVICEFEATURE_DEFAULTCOMDEVICE = 0x0020,
191 }
192
205 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
206 public struct SoundDevice
207 {
213 public int nDeviceID;
215 public SoundSystem nSoundSystem;
217 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
218 public string szDeviceName;
223 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
224 public string szDeviceID;
241 public int nWaveDeviceID;
244 public bool bSupports3D;
246 public int nMaxInputChannels;
248 public int nMaxOutputChannels;
252 [MarshalAs(UnmanagedType.ByValArray, SizeConst = TeamTalkBase.TT_SAMPLERATES_MAX)]
253 public int[] inputSampleRates;
257 [MarshalAs(UnmanagedType.ByValArray, SizeConst = TeamTalkBase.TT_SAMPLERATES_MAX)]
258 public int[] outputSampleRates;
260 public int nDefaultSampleRate;
266 public SoundDeviceFeature uSoundDeviceFeatures;
267 }
268
269
278 public struct SoundDeviceEffects
279 {
295 public bool bEnableAGC;
312 public bool bEnableDenoise;
328 public bool bEnableEchoCancellation;
329 }
330
333 public struct SoundDeviceConstants
334 {
337 public const int TT_SOUNDDEVICE_ID_REMOTEIO = 0;
343 public const int TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO = (1 | (int)TT_SOUNDDEVICE_ID_SHARED_FLAG);
348 public const int TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT = 0;
353 public const int TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM = 1;
362 public const int TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL = 1978;
363
364
378 public const uint TT_SOUNDDEVICE_ID_SHARED_FLAG = 0x00000800;
379
384 public const uint TT_SOUNDDEVICE_ID_MASK = 0x000007FF;
385 }
386
390 public struct SoundLevel
391 {
397 public const int SOUND_VU_MAX = 100;
403 public const int SOUND_VU_MIN = 0;
411 public const int SOUND_VOLUME_MAX = 32000;
419 public const int SOUND_VOLUME_DEFAULT = 1000;
425 public const int SOUND_VOLUME_MIN = 0;
434 public const int SOUND_GAIN_MAX = 32000;
444 public const int SOUND_GAIN_DEFAULT = 1000;
453 public const int SOUND_GAIN_MIN = 0;
454 }
455
470 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
471 public struct AudioBlock
472 {
476 public int nStreamID;
478 public int nSampleRate;
480 public int nChannels;
484 public System.IntPtr lpRawAudio;
486 public int nSamples;
494 public uint uSampleIndex;
507 StreamType uStreamTypes;
508 }
509
518 public enum MediaFileStatus : uint
519 {
520 MFS_CLOSED = 0,
522 MFS_ERROR = 1,
524 MFS_STARTED = 2,
526 MFS_FINISHED = 3,
528 MFS_ABORTED = 4,
530 MFS_PAUSED = 5,
533 MFS_PLAYING = 6
534 }
535
539 public enum AudioFileFormat : uint
540 {
542 AFF_NONE = 0,
553 AFF_CHANNELCODEC_FORMAT = 1,
555 AFF_WAVE_FORMAT = 2,
557 AFF_MP3_16KBIT_FORMAT = 3,
559 AFF_MP3_32KBIT_FORMAT = 4,
561 AFF_MP3_64KBIT_FORMAT = 5,
563 AFF_MP3_128KBIT_FORMAT = 6,
565 AFF_MP3_256KBIT_FORMAT = 7,
566 }
567
577 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
578 public struct AudioFormat
579 {
581 public AudioFileFormat nAudioFmt;
583 public int nSampleRate;
585 public int nChannels;
586 }
587
598 public enum FourCC : uint
599 {
601 FOURCC_NONE = 0,
604 FOURCC_I420 = 100,
607 FOURCC_YUY2 = 101,
610 FOURCC_RGB32 = 102
611 }
612
619 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
620 public struct VideoFormat
621 {
624 public int nWidth;
627 public int nHeight;
631 public int nFPS_Numerator;
635 public int nFPS_Denominator;
637 public FourCC picFourCC;
638 }
639
647 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
648 public struct VideoFrame
649 {
652 public int nWidth;
655 public int nHeight;
661 public int nStreamID;
666 public bool bKeyFrame;
668 public System.IntPtr frameBuffer;
671 public int nFrameBufferSize;
672 }
673
683 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
684 public struct VideoCaptureDevice
685 {
687 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
688 public string szDeviceID;
690 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
691 public string szDeviceName;
704 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
705 public string szCaptureAPI;
707 [MarshalAs(UnmanagedType.ByValArray, SizeConst = TeamTalkBase.TT_VIDEOFORMATS_MAX)]
708 public VideoFormat[] videoFormats;
711 public int nVideoFormatsCount;
712 }
713
721 public enum BitmapFormat : uint
722 {
724 BMP_NONE = 0,
730 BMP_RGB8_PALETTE = 1,
733 BMP_RGB16_555 = 2,
737 BMP_RGB24 = 3,
741 BMP_RGB32 = 4
742 }
743
748 public enum DesktopProtocol : uint
749 {
752 DESKTOPPROTOCOL_ZLIB_1 = 1
753 }
754
761 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
762 public struct DesktopWindow
763 {
765 public int nWidth;
767 public int nHeight;
769 public BitmapFormat bmpFormat;
772 public int nBytesPerLine;
779 public int nSessionID;
781 public DesktopProtocol nProtocol;
783 public IntPtr frameBuffer;
786 public int nFrameBufferSize;
787 }
788
792 public enum DesktopKeyState : uint
793 {
795 DESKTOPKEYSTATE_NONE = 0x00000000,
797 DESKTOPKEYSTATE_DOWN = 0x00000001,
799 DESKTOPKEYSTATE_UP = 0x00000002,
800 }
801
809 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
810 public struct DesktopInput
811 {
815 public ushort uMousePosX;
819 public ushort uMousePosY;
825 public uint uKeyCode;
828 public DesktopKeyState uKeyState;
830 public DesktopInput(bool set_defaults)
831 {
832 if (set_defaults)
833 {
834 uMousePosX = uMousePosY = (ushort)DesktopInputConstants.DESKTOPINPUT_MOUSEPOS_IGNORE;
835 uKeyCode = DesktopInputConstants.DESKTOPINPUT_KEYCODE_IGNORE;
836 uKeyState = DesktopKeyState.DESKTOPKEYSTATE_NONE;
837 }
838 else
839 {
840 uMousePosX = uMousePosY = 0;
841 uKeyCode = 0;
842 uKeyState = DesktopKeyState.DESKTOPKEYSTATE_NONE;
843 }
844 }
845 }
846
848 public struct DesktopInputConstants
849 {
857 public const uint DESKTOPINPUT_KEYCODE_IGNORE = 0xFFFFFFFF;
858
866 public const ushort DESKTOPINPUT_MOUSEPOS_IGNORE = 0xFFFF;
867
874 public const uint DESKTOPINPUT_KEYCODE_LMOUSEBTN = 0x1000;
875
882 public const uint DESKTOPINPUT_KEYCODE_RMOUSEBTN = 0x1001;
883
890 public const uint DESKTOPINPUT_KEYCODE_MMOUSEBTN = 0x1002;
891 }
892
905 [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Unicode)]
906 public struct SpeexCodec
907 {
910 [FieldOffset(0)]
911 public int nBandmode;
914 [FieldOffset(4)]
915 public int nQuality;
925 [FieldOffset(8)]
926 public int nTxIntervalMSec;
932 [FieldOffset(12)]
933 public bool bStereoPlayback;
934 }
935
941 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
942 public struct SpeexVBRCodec
943 {
946 public int nBandmode;
949 public int nQuality;
956 public int nBitRate;
960 public int nMaxBitRate;
964 public bool bDTX;
973 public int nTxIntervalMSec;
979 public bool bStereoPlayback;
980 }
981
983 public struct SpeexConstants
984 {
986 public const int SPEEX_BANDMODE_NARROW = 0;
988 public const int SPEEX_BANDMODE_WIDE = 1;
990 public const int SPEEX_BANDMODE_UWIDE = 2;
992 public const int SPEEX_QUALITY_MIN = 0;
994 public const int SPEEX_QUALITY_MAX = 10;
997 public const int SPEEX_NB_MIN_BITRATE = 2150;
1000 public const int SPEEX_NB_MAX_BITRATE = 24600;
1003 public const int SPEEX_WB_MIN_BITRATE = 3950;
1006 public const int SPEEX_WB_MAX_BITRATE = 42200;
1009 public const int SPEEX_UWB_MIN_BITRATE = 4150;
1012 public const int SPEEX_UWB_MAX_BITRATE = 44000;
1015 public const int DEFAULT_SPEEX_BANDMODE = 1;
1018 public const int DEFAULT_SPEEX_QUALITY = 4;
1021 public const int DEFAULT_SPEEX_DELAY = 40;
1024 public const bool DEFAULT_SPEEX_SIMSTEREO = false;
1027 public const int DEFAULT_SPEEX_BITRATE = 0;
1030 public const int DEFAULT_SPEEX_MAXBITRATE = 0;
1033 public const bool DEFAULT_SPEEX_DTX = true;
1034 }
1035
1038 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1039 public struct OpusCodec
1040 {
1043 public int nSampleRate;
1045 public int nChannels;
1049 public int nApplication;
1052 public int nComplexity;
1055 public bool bFEC;
1058 public bool bDTX;
1062 public int nBitRate;
1064 public bool bVBR;
1067 public bool bVBRConstraint;
1074 public int nTxIntervalMSec;
1078 public int nFrameSizeMSec;
1079 }
1080
1082 public struct OpusConstants
1083 {
1086 public const int OPUS_APPLICATION_VOIP = 2048;
1089 public const int OPUS_APPLICATION_AUDIO = 2049;
1092 public const int OPUS_MIN_BITRATE = 6000;
1095 public const int OPUS_MAX_BITRATE = 510000;
1096
1099 public const int OPUS_MIN_FRAMESIZE = 2; /* Actually it's 2.5 */
1102 public const int OPUS_MAX_FRAMESIZE = 60;
1106 public const int OPUS_REALMAX_FRAMESIZE = 120;
1107
1108 public const int DEFAULT_OPUS_APPLICATION = OPUS_APPLICATION_VOIP;
1109 public const int DEFAULT_OPUS_SAMPLERATE = 48000;
1110 public const int DEFAULT_OPUS_CHANNELS = 1;
1111 public const int DEFAULT_OPUS_COMPLEXITY = 10;
1112 public const bool DEFAULT_OPUS_FEC = true;
1113 public const bool DEFAULT_OPUS_DTX = false;
1114 public const bool DEFAULT_OPUS_VBR = true;
1115 public const bool DEFAULT_OPUS_VBRCONSTRAINT = false;
1116 public const int DEFAULT_OPUS_BITRATE = 32000;
1117 public const int DEFAULT_OPUS_DELAY = 20;
1118 }
1119
1137 [StructLayout(LayoutKind.Explicit)]
1138 public struct SpeexDSP
1139 {
1147 [FieldOffset(0)]
1148 public bool bEnableAGC;
1151 [FieldOffset(4)]
1152 public int nGainLevel;
1156 [FieldOffset(8)]
1157 public int nMaxIncDBSec;
1162 [FieldOffset(12)]
1163 public int nMaxDecDBSec;
1167 [FieldOffset(16)]
1168 public int nMaxGainDB;
1171 [FieldOffset(20)]
1172 public bool bEnableDenoise;
1176 [FieldOffset(24)]
1177 public int nMaxNoiseSuppressDB;
1196 [FieldOffset(28)]
1197 public bool bEnableEchoCancellation;
1201 [FieldOffset(32)]
1202 public int nEchoSuppress;
1206 [FieldOffset(36)]
1207 public int nEchoSuppressActive;
1208
1209 public SpeexDSP(bool set_defaults)
1210 {
1211 if (set_defaults)
1212 {
1213 bEnableAGC = SpeexDSPConstants.DEFAULT_AGC_ENABLE;
1214 nGainLevel = SpeexDSPConstants.DEFAULT_AGC_GAINLEVEL;
1215 nMaxIncDBSec = SpeexDSPConstants.DEFAULT_AGC_INC_MAXDB;
1216 nMaxDecDBSec = SpeexDSPConstants.DEFAULT_AGC_DEC_MAXDB;
1217 nMaxGainDB = SpeexDSPConstants.DEFAULT_AGC_GAINMAXDB;
1218
1219 bEnableDenoise = SpeexDSPConstants.DEFAULT_DENOISE_ENABLE;
1220 nMaxNoiseSuppressDB = SpeexDSPConstants.DEFAULT_DENOISE_SUPPRESS;
1221
1222 bEnableEchoCancellation = SpeexDSPConstants.DEFAULT_ECHO_ENABLE;
1223 nEchoSuppress = SpeexDSPConstants.DEFAULT_ECHO_SUPPRESS;
1224 nEchoSuppressActive = SpeexDSPConstants.DEFAULT_ECHO_SUPPRESS_ACTIVE;
1225 }
1226 else
1227 {
1228 bEnableAGC = false;
1229 nGainLevel = 0;
1230 nMaxIncDBSec = 0;
1231 nMaxDecDBSec = 0;
1232 nMaxGainDB = 0;
1233
1234 bEnableDenoise = false;
1235 nMaxNoiseSuppressDB = 0;
1236
1237 bEnableEchoCancellation = false;
1238 nEchoSuppress = 0;
1239 nEchoSuppressActive = 0;
1240 }
1241 }
1242 }
1243
1246 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1247 public struct TTAudioPreprocessor
1248 {
1252 public int nGainLevel;
1254 public bool bMuteLeftSpeaker;
1256 public bool bMuteRightSpeaker;
1257 }
1258
1268 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1269 public struct WebRTCAudioPreprocessor
1270 {
1272 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1273 public struct Preamplifier
1274 {
1277 public bool bEnable;
1279 public float fFixedGainFactor;
1280 }
1281 public Preamplifier preamplifier;
1282
1285 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1286 public struct EchoCanceller
1287 {
1293 public bool bEnable;
1294 }
1295 public EchoCanceller echocanceller;
1296
1299 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1300 public struct NoiseSuppression
1301 {
1303 public bool bEnable;
1306 public int nLevel;
1307 }
1308 public NoiseSuppression noisesuppression;
1309
1311 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1312 public struct VoiceDetection
1313 {
1323 public bool bEnable;
1324 }
1325 public VoiceDetection voicedetection;
1326
1329 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1330 public struct GainController2
1331 {
1334 public bool bEnable;
1337 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1338 public struct FixedDigital
1339 {
1342 public float fGainDB;
1343 }
1344 public FixedDigital fixeddigital;
1345
1347 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1348 public struct AdaptiveDigital
1349 {
1350 /* @brief Enable saturation protector where saturation
1351 * margin is 2 dB. */
1352 public bool bEnable;
1353 /* Range: 0 <= x <= 100. Default: 20 dB */
1354 public float fInitialSaturationMarginDB;
1355 /* Range: 0 <= x <= 100. Default: 2 dB */
1356 public float fExtraSaturationMarginDB;
1357 /* Range: 0 < x < infinite. Default: 3 dB/sec */
1358 public float fMaxGainChangeDBPerSecond;
1359 /* Range: -infinite < x < 0. Default: -50 */
1360 public float fMaxOutputNoiseLevelDBFS;
1361 }
1362 public AdaptiveDigital adaptivedigital;
1363 }
1364 public GainController2 gaincontroller2;
1365
1367 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1368 public struct LevelEstimation
1369 {
1375 public bool bEnable;
1376 }
1377 public LevelEstimation levelestimation;
1378
1379 public WebRTCAudioPreprocessor(bool set_defaults)
1380 {
1381 if (set_defaults)
1382 {
1383 preamplifier.bEnable = WebRTCConstants.DEFAULT_WEBRTC_PREAMPLIFIER_ENABLE;
1384 preamplifier.fFixedGainFactor = WebRTCConstants.DEFAULT_WEBRTC_PREAMPLIFIER_GAINFACTOR;
1385
1386 echocanceller.bEnable = WebRTCConstants.DEFAULT_WEBRTC_ECHO_CANCEL_ENABLE;
1387
1388 noisesuppression.bEnable = WebRTCConstants.DEFAULT_WEBRTC_NOISESUPPRESS_ENABLE;
1389 noisesuppression.nLevel = WebRTCConstants.DEFAULT_WEBRTC_NOISESUPPRESS_LEVEL;
1390
1391 voicedetection.bEnable = WebRTCConstants.DEFAULT_WEBRTC_VAD_ENABLE;
1392
1393 gaincontroller2.bEnable = WebRTCConstants.DEFAULT_WEBRTC_GAINCTL_ENABLE;
1394 gaincontroller2.fixeddigital.fGainDB = WebRTCConstants.DEFAULT_WEBRTC_GAINDB;
1395
1396 gaincontroller2.adaptivedigital.bEnable = WebRTCConstants.DEFAULT_WEBRTC_SAT_PROT_ENABLE;
1397 gaincontroller2.adaptivedigital.fInitialSaturationMarginDB = WebRTCConstants.DEFAULT_WEBRTC_INIT_SAT_MARGIN_DB;
1398 gaincontroller2.adaptivedigital.fExtraSaturationMarginDB = WebRTCConstants.DEFAULT_WEBRTC_EXTRA_SAT_MARGIN_DB;
1399 gaincontroller2.adaptivedigital.fMaxGainChangeDBPerSecond = WebRTCConstants.DEFAULT_WEBRTC_MAXGAIN_DBSEC;
1400 gaincontroller2.adaptivedigital.fMaxOutputNoiseLevelDBFS = WebRTCConstants.DEFAULT_WEBRTC_MAX_OUT_NOISE;
1401
1402 levelestimation.bEnable = WebRTCConstants.DEFAULT_WEBRTC_LEVELESTIMATION_ENABLE;
1403 }
1404 else
1405 {
1406 preamplifier.bEnable = false;
1407 preamplifier.fFixedGainFactor = 0.0f;
1408
1409 echocanceller.bEnable = false;
1410
1411 noisesuppression.bEnable = false;
1412 noisesuppression.nLevel = 0;
1413
1414 voicedetection.bEnable = false;
1415
1416 gaincontroller2.bEnable = false;
1417 gaincontroller2.fixeddigital.fGainDB = 0.0f;
1418
1419 gaincontroller2.adaptivedigital.bEnable = false;
1420 gaincontroller2.adaptivedigital.fInitialSaturationMarginDB = 0.0f;
1421 gaincontroller2.adaptivedigital.fExtraSaturationMarginDB = 0.0f;
1422 gaincontroller2.adaptivedigital.fMaxGainChangeDBPerSecond = 0.0f;
1423 gaincontroller2.adaptivedigital.fMaxOutputNoiseLevelDBFS = 0.0f;
1424
1425 levelestimation.bEnable = false;
1426 }
1427 }
1428 }
1429
1431 public struct WebRTCConstants
1432 {
1433 public const bool DEFAULT_WEBRTC_PREAMPLIFIER_ENABLE = false;
1434 public const float DEFAULT_WEBRTC_PREAMPLIFIER_GAINFACTOR = 1.0f;
1435 public const bool DEFAULT_WEBRTC_VAD_ENABLE = false;
1436 public const bool DEFAULT_WEBRTC_LEVELESTIMATION_ENABLE = false;
1437 public const bool DEFAULT_WEBRTC_GAINCTL_ENABLE = false;
1438 public const float DEFAULT_WEBRTC_GAINDB = 15;
1439 public const bool DEFAULT_WEBRTC_SAT_PROT_ENABLE = false;
1440 public const float DEFAULT_WEBRTC_INIT_SAT_MARGIN_DB = 20;
1441 public const float DEFAULT_WEBRTC_EXTRA_SAT_MARGIN_DB = 2;
1442 public const float DEFAULT_WEBRTC_MAXGAIN_DBSEC = 3;
1443 public const float DEFAULT_WEBRTC_MAX_OUT_NOISE = -50;
1444 public const bool DEFAULT_WEBRTC_NOISESUPPRESS_ENABLE = false;
1445 public const int DEFAULT_WEBRTC_NOISESUPPRESS_LEVEL = 2;
1446 public const bool DEFAULT_WEBRTC_ECHO_CANCEL_ENABLE = false;
1447 public const float WEBRTC_GAINCONTROLLER2_FIXEDGAIN_MAX = 49.9f;
1448 }
1449
1453 public enum AudioPreprocessorType : uint
1454 {
1457 NO_AUDIOPREPROCESSOR = 0,
1459 SPEEXDSP_AUDIOPREPROCESSOR = 1,
1461 TEAMTALK_AUDIOPREPROCESSOR = 2,
1464 WEBRTC_AUDIOPREPROCESSOR = 3,
1465 };
1466
1468 [StructLayout(LayoutKind.Explicit)]
1469 public struct AudioPreprocessor
1470 {
1472 [FieldOffset(0)]
1473 public AudioPreprocessorType nPreprocessor;
1475 [FieldOffset(4)]
1476 public SpeexDSP speexdsp;
1478 [FieldOffset(4)]
1479 public TTAudioPreprocessor ttpreprocessor;
1481 [FieldOffset(4)]
1482 public WebRTCAudioPreprocessor webrtc;
1483 }
1484
1486 public struct SpeexDSPConstants
1487 {
1488 public const bool DEFAULT_AGC_ENABLE = true;
1489 public const int DEFAULT_AGC_GAINLEVEL = 8000;
1490 public const int DEFAULT_AGC_INC_MAXDB = 12;
1491 public const int DEFAULT_AGC_DEC_MAXDB = -40;
1492 public const int DEFAULT_AGC_GAINMAXDB = 30;
1493 public const bool DEFAULT_DENOISE_ENABLE = true;
1494 public const int DEFAULT_DENOISE_SUPPRESS = -30;
1495 public const bool DEFAULT_ECHO_ENABLE = true;
1496 public const int DEFAULT_ECHO_SUPPRESS = -40;
1497 public const int DEFAULT_ECHO_SUPPRESS_ACTIVE = -15;
1498 }
1499
1504 [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Unicode)]
1505 public struct WebMVP8Codec
1506 {
1508 [FieldOffset(0)]
1509 public int nRcTargetBitrate;
1515 [FieldOffset(0)]
1516 public int rc_target_bitrate;
1524 [FieldOffset(4)]
1525 public uint nEncodeDeadline;
1526 }
1527
1528 public struct WebMVP8CodecConstants
1529 {
1532 public const int WEBM_VPX_DL_REALTIME = 1;
1535 public const int WEBM_VPX_DL_GOOD_QUALITY = 1000000;
1538 public const int WEBM_VPX_DL_BEST_QUALITY = 0;
1539 }
1540
1545 public enum Codec : uint
1546 {
1548 NO_CODEC = 0,
1551 SPEEX_CODEC = 1,
1554 SPEEX_VBR_CODEC = 2,
1556 OPUS_CODEC = 3,
1558 WEBM_VP8_CODEC = 128
1559 }
1560
1564 [StructLayout(LayoutKind.Explicit)]
1565 public struct AudioCodec
1566 {
1569 [FieldOffset(0)]
1570 public Codec nCodec;
1573 [FieldOffset(4)]
1574 public SpeexCodec speex;
1577 [FieldOffset(4)]
1578 public SpeexVBRCodec speex_vbr;
1581 [FieldOffset(4)]
1582 public OpusCodec opus;
1583 }
1584
1598 [StructLayout(LayoutKind.Explicit)]
1599 public struct AudioConfig
1600 {
1602 [FieldOffset(0)]
1603 public bool bEnableAGC;
1605 [FieldOffset(4)]
1606 public int nGainLevel;
1607
1608 public AudioConfig(bool set_defaults)
1609 {
1610 if (set_defaults)
1611 {
1612 bEnableAGC = true;
1613 nGainLevel = AudioConfigConstants.DEFAULT_AGC_GAINLEVEL;
1614 }
1615 else
1616 {
1617 bEnableAGC = false;
1618 nGainLevel = 0;
1619 }
1620 }
1621 }
1622
1623 public struct AudioConfigConstants
1624 {
1625 public const int DEFAULT_AGC_GAINLEVEL = 8000;
1626 public const int DEFAULT_AGC_INC_MAXDB = 12;
1627 }
1628
1630 [StructLayout(LayoutKind.Explicit)]
1631 public struct VideoCodec
1632 {
1636 [FieldOffset(0)]
1637 public Codec nCodec;
1638 [FieldOffset(4)]
1639 public WebMVP8Codec webm_vp8;
1640 }
1651 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1652 public struct MediaFileInfo
1653 {
1656 public MediaFileStatus nStatus;
1658 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1659 public string szFileName;
1661 public AudioFormat audioFmt;
1663 public VideoFormat videoFmt;
1665 public uint uDurationMSec;
1667 public uint uElapsedMSec;
1668 }
1677 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1678 public struct MediaFilePlayback
1679 {
1684 public uint uOffsetMSec;
1686 public bool bPaused;
1688 public AudioPreprocessor audioPreprocessor;
1689 }
1690
1693 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1694 public struct AudioInputProgress
1695 {
1697 public int nStreamID;
1700 public uint uQueueMSec;
1703 public uint uElapsedMSec;
1704 }
1705
1722 [Flags]
1723 public enum UserRight : uint
1724 {
1727 USERRIGHT_NONE = 0x00000000,
1730 USERRIGHT_MULTI_LOGIN = 0x00000001,
1732 USERRIGHT_VIEW_ALL_USERS = 0x00000002,
1736 USERRIGHT_CREATE_TEMPORARY_CHANNEL = 0x00000004,
1740 USERRIGHT_MODIFY_CHANNELS = 0x00000008,
1743 USERRIGHT_TEXTMESSAGE_BROADCAST = 0x00000010,
1745 USERRIGHT_KICK_USERS = 0x00000020,
1748 USERRIGHT_BAN_USERS = 0x00000040,
1751 USERRIGHT_MOVE_USERS = 0x00000080,
1754 USERRIGHT_OPERATOR_ENABLE = 0x00000100,
1756 USERRIGHT_UPLOAD_FILES = 0x00000200,
1759 USERRIGHT_DOWNLOAD_FILES = 0x00000400,
1762 USERRIGHT_UPDATE_SERVERPROPERTIES = 0x00000800,
1765 USERRIGHT_TRANSMIT_VOICE = 0x00001000,
1768 USERRIGHT_TRANSMIT_VIDEOCAPTURE = 0x00002000,
1771 USERRIGHT_TRANSMIT_DESKTOP = 0x00004000,
1774 USERRIGHT_TRANSMIT_DESKTOPINPUT = 0x00008000,
1777 USERRIGHT_TRANSMIT_MEDIAFILE_AUDIO = 0x00010000,
1780 USERRIGHT_TRANSMIT_MEDIAFILE_VIDEO = 0x00020000,
1783 USERRIGHT_TRANSMIT_MEDIAFILE = USERRIGHT_TRANSMIT_MEDIAFILE_VIDEO | USERRIGHT_TRANSMIT_MEDIAFILE_AUDIO,
1790 USERRIGHT_LOCKED_NICKNAME = 0x00040000,
1793 USERRIGHT_LOCKED_STATUS = 0x00080000,
1796 USERRIGHT_RECORD_VOICE = 0x00100000,
1798 USERRIGHT_VIEW_HIDDEN_CHANNELS = 0x00200000,
1800 USERRIGHT_ALL = 0xFFFFFFFF & ~USERRIGHT_LOCKED_NICKNAME & ~USERRIGHT_LOCKED_STATUS
1801 }
1802
1814 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1815 public struct ServerProperties
1816 {
1818 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1819 public string szServerName;
1822 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1823 public string szMOTD;
1832 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1833 public string szMOTDRaw;
1836 public int nMaxUsers;
1839 public int nMaxLoginAttempts;
1842 public int nMaxLoginsPerIPAddress;
1846 public int nMaxVoiceTxPerSecond;
1851 public int nMaxVideoCaptureTxPerSecond;
1855 public int nMaxMediaFileTxPerSecond;
1859 public int nMaxDesktopTxPerSecond;
1863 public int nMaxTotalTxPerSecond;
1865 public bool bAutoSave;
1867 public int nTcpPort;
1869 public int nUdpPort;
1872 public int nUserTimeout;
1874 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1875 public string szServerVersion;
1877 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1878 public string szServerProtocolVersion;
1887 public int nLoginDelayMSec;
1891 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1892 public string szAccessToken;
1893 }
1894
1902 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1903 public struct ServerStatistics
1904 {
1907 public long nTotalBytesTX;
1910 public long nTotalBytesRX;
1913 public long nVoiceBytesTX;
1916 public long nVoiceBytesRX;
1919 public long nVideoCaptureBytesTX;
1922 public long nVideoCaptureBytesRX;
1925 public long nMediaFileBytesTX;
1928 public long nMediaFileBytesRX;
1931 public long nDesktopBytesTX;
1934 public long nDesktopBytesRX;
1936 public int nUsersServed;
1938 public int nUsersPeak;
1941 public long nFilesTx;
1944 public long nFilesRx;
1946 public long nUptimeMSec;
1947 }
1948
1954 [Flags]
1955 public enum BanType : uint
1956 {
1958 BANTYPE_NONE = 0x00,
1962 BANTYPE_CHANNEL = 0x01,
1964 BANTYPE_IPADDR = 0x02,
1966 BANTYPE_USERNAME = 0x04
1967 };
1968
1973 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
1974 public struct BannedUser
1975 {
1977 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1978 public string szIPAddress;
1980 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1981 public string szChannelPath;
1983 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1984 public string szBanTime;
1986 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1987 public string szNickname;
1989 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
1990 public string szUsername;
1992 public BanType uBanTypes;
1993 }
1994
1998 [Flags]
1999 public enum UserType : uint
2000 {
2003 USERTYPE_NONE = 0x0,
2005 USERTYPE_DEFAULT = 0x01,
2007 USERTYPE_ADMIN = 0x02
2008 }
2009
2018 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2019 public struct AbusePrevention
2020 {
2030 public int nCommandsLimit;
2032 public int nCommandsIntervalMSec;
2033 }
2034
2043 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2044 public struct UserAccount
2045 {
2047 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2048 public string szUsername;
2050 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2051 public string szPassword;
2053 public UserType uUserType;
2057 public UserRight uUserRights;
2061 public int nUserData;
2063 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2064 public string szNote;
2069 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2070 public string szInitChannel;
2074 [MarshalAs(UnmanagedType.ByValArray, SizeConst = TeamTalkBase.TT_CHANNELS_OPERATOR_MAX)]
2075 public int[] autoOperatorChannels;
2079 public int nAudioCodecBpsLimit;
2084 public AbusePrevention abusePrevent;
2087 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2088 public string szLastModified;
2089 }
2113 [Flags]
2114 public enum Subscription : uint
2115 {
2117 SUBSCRIBE_NONE = 0x00000000,
2120 SUBSCRIBE_USER_MSG = 0x00000001,
2123 SUBSCRIBE_CHANNEL_MSG = 0x00000002,
2126 SUBSCRIBE_BROADCAST_MSG = 0x00000004,
2129 SUBSCRIBE_CUSTOM_MSG = 0x00000008,
2131 SUBSCRIBE_VOICE = 0x00000010,
2133 SUBSCRIBE_VIDEOCAPTURE = 0x00000020,
2135 SUBSCRIBE_DESKTOP = 0x00000040,
2139 SUBSCRIBE_DESKTOPINPUT = 0x00000080,
2142 SUBSCRIBE_MEDIAFILE = 0x00000100,
2145 SUBSCRIBE_INTERCEPT_USER_MSG = 0x00010000,
2148 SUBSCRIBE_INTERCEPT_CHANNEL_MSG = 0x00020000,
2149 /* unused SUBSCRIBE_INTERCEPT_BROADCAST_MSG = 0x00040000 */
2152 SUBSCRIBE_INTERCEPT_CUSTOM_MSG = 0x00080000,
2157 SUBSCRIBE_INTERCEPT_VOICE = 0x00100000,
2162 SUBSCRIBE_INTERCEPT_VIDEOCAPTURE = 0x00200000,
2167 SUBSCRIBE_INTERCEPT_DESKTOP = 0x00400000,
2168 /* unused SUBSCRIBE_INTERCEPT_DESKTOPINPUT = 0x00800000, */
2173 SUBSCRIBE_INTERCEPT_MEDIAFILE = 0x01000000,
2174 }
2175
2179 [Flags]
2180 public enum UserState : uint
2181 {
2183 USERSTATE_NONE = 0x0000000,
2187 USERSTATE_VOICE = 0x00000001,
2189 USERSTATE_MUTE_VOICE = 0x00000002,
2192 USERSTATE_MUTE_MEDIAFILE = 0x00000004,
2197 USERSTATE_DESKTOP = 0x00000008,
2202 USERSTATE_VIDEOCAPTURE = 0x00000010,
2208 USERSTATE_MEDIAFILE_AUDIO = 0x00000020,
2212 USERSTATE_MEDIAFILE_VIDEO = 0x00000040,
2216 USERSTATE_MEDIAFILE = USERSTATE_MEDIAFILE_AUDIO |
2217 USERSTATE_MEDIAFILE_VIDEO
2218 }
2219
2224 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2225 public struct User
2226 {
2230 public int nUserID;
2235 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2236 public string szUsername;
2241 public int nUserData;
2245 public UserType uUserType;
2247 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2248 public string szIPAddress;
2254 public uint uVersion;
2260 public int nChannelID;
2266 public Subscription uLocalSubscriptions;
2272 public Subscription uPeerSubscriptions;
2277 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2278 public string szNickname;
2283 public int nStatusMode;
2288 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2289 public string szStatusMsg;
2292 public UserState uUserState;
2295 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2296 public string szMediaStorageDir;
2302 public int nVolumeVoice;
2308 public int nVolumeMediaFile;
2312 public int nStoppedDelayVoice;
2316 public int nStoppedDelayMediaFile;
2321 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
2322 public float[] soundPositionVoice;
2327 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
2328 public float[] soundPositionMediaFile;
2333 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
2334 public bool[] stereoPlaybackVoice;
2339 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
2340 public bool[] stereoPlaybackMediaFile;
2344 public int nBufferMSecVoice;
2348 public int nBufferMSecMediaFile;
2352 public int nActiveAdaptiveDelayMSec;
2356 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2357 public string szClientName;
2358 }
2359
2364 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2365 public struct UserStatistics
2366 {
2368 public long nVoicePacketsRecv;
2370 public long nVoicePacketsLost;
2373 public long nVideoCapturePacketsRecv;
2375 public long nVideoCaptureFramesRecv;
2378 public long nVideoCaptureFramesLost;
2381 public long nVideoCaptureFramesDropped;
2383 public long nMediaFileAudioPacketsRecv;
2385 public long nMediaFileAudioPacketsLost;
2388 public long nMediaFileVideoPacketsRecv;
2390 public long nMediaFileVideoFramesRecv;
2393 public long nMediaFileVideoFramesLost;
2396 public long nMediaFileVideoFramesDropped;
2397 }
2398
2407 public enum TextMsgType : uint
2408 {
2411 MSGTYPE_USER = 1,
2416 MSGTYPE_CHANNEL = 2,
2419 MSGTYPE_BROADCAST = 3,
2422 MSGTYPE_CUSTOM = 4
2423 }
2424
2432 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2433 public struct TextMessage
2434 {
2436 public TextMsgType nMsgType;
2438 public int nFromUserID;
2440 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2441 public string szFromUsername;
2443 public int nToUserID;
2446 public int nChannelID;
2449 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2450 public string szMessage;
2451 }
2459 [Flags]
2460 public enum ChannelType : uint
2461 {
2464 CHANNEL_DEFAULT = 0x0000,
2467 CHANNEL_PERMANENT = 0x0001,
2469 CHANNEL_SOLO_TRANSMIT = 0x0002,
2480 CHANNEL_CLASSROOM = 0x0004,
2485 CHANNEL_OPERATOR_RECVONLY = 0x0008,
2488 CHANNEL_NO_VOICEACTIVATION = 0x0010,
2490 CHANNEL_NO_RECORDING = 0x0020,
2493 CHANNEL_HIDDEN = 0x0040,
2494 }
2495
2507 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2508 public struct Channel
2509 {
2512 public int nParentID;
2515 public int nChannelID;
2517 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2518 public string szName;
2520 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2521 public string szTopic;
2525 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2526 public string szPassword;
2529 public bool bPassword;
2531 public ChannelType uChannelType;
2535 public int nUserData;
2537 public long nDiskQuota;
2540 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2541 public string szOpPassword;
2543 public int nMaxUsers;
2545 public AudioCodec audiocodec;
2548 public AudioConfig audiocfg;
2604 [MarshalAs(UnmanagedType.ByValArray, SizeConst = TeamTalkBase.TT_TRANSMITUSERS_MAX * 2)]
2605 public int[] transmitUsers;
2610 [MarshalAs(UnmanagedType.ByValArray, SizeConst = TeamTalkBase.TT_TRANSMITQUEUE_MAX)]
2611 public int[] transmitUsersQueue;
2612
2615 public void AddTransmitUser(int nUserID, StreamType uStreamType)
2616 {
2617 int i;
2618 for (i = 0; i < TeamTalkBase.TT_TRANSMITUSERS_MAX; i++)
2619 {
2620 if (transmitUsers[i * 2] == 0 || transmitUsers[i * 2] == nUserID)
2621 break;
2622 }
2623 if (i < TeamTalkBase.TT_TRANSMITUSERS_MAX)
2624 {
2625 transmitUsers[i * 2] = nUserID;
2626 transmitUsers[i * 2 + 1] |= (int)uStreamType;
2627 }
2628 }
2631 public StreamType GetTransmitStreamTypes(int nUserID)
2632 {
2633 int i;
2634 for (i = 0; i < TeamTalkBase.TT_TRANSMITUSERS_MAX; i++)
2635 {
2636 if (transmitUsers[i * 2] == nUserID)
2637 return (StreamType)transmitUsers[i * 2 + 1];
2638 }
2639 return StreamType.STREAMTYPE_NONE;
2640 }
2642 public int GetTransmitUserCount()
2643 {
2644 int i;
2645 for (i = 0; i < TeamTalkBase.TT_TRANSMITUSERS_MAX; i++)
2646 {
2647 if (transmitUsers[i * 2] == 0)
2648 break;
2649 }
2650 return i;
2651 }
2653 public void RemoveTransmitUser(int nUserID, StreamType uStreamType)
2654 {
2655 int i;
2656 for (i = 0; i < TeamTalkBase.TT_TRANSMITUSERS_MAX; i++)
2657 {
2658 if (transmitUsers[i * 2] == nUserID)
2659 break;
2660 }
2661 if (i < TeamTalkBase.TT_TRANSMITUSERS_MAX)
2662 {
2663 transmitUsers[i * 2] = nUserID;
2664 transmitUsers[i * 2 + 1] &= (int)~uStreamType;
2665
2666 if (transmitUsers[i * 2 + 1] == (int)StreamType.STREAMTYPE_NONE)
2667 {
2668 for (; i < TeamTalkBase.TT_TRANSMITUSERS_MAX - 1; i++)
2669 {
2670 transmitUsers[i * 2] = transmitUsers[(i + 1) * 2 + 1];
2671 transmitUsers[i * 2 + 1] = transmitUsers[(i + 1) * 2 + 1];
2672 }
2673 }
2674 }
2675 }
2676 }
2677
2680 public enum FileTransferStatus : uint
2681 {
2683 FILETRANSFER_CLOSED = 0,
2685 FILETRANSFER_ERROR = 1,
2687 FILETRANSFER_ACTIVE = 2,
2689 FILETRANSFER_FINISHED = 3
2690 }
2691
2695 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2696 public struct FileTransfer
2697 {
2699 public FileTransferStatus nStatus;
2701 public int nTransferID;
2703 public int nChannelID;
2705 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2706 public string szLocalFilePath;
2708 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2709 public string szRemoteFileName;
2711 public long nFileSize;
2713 public long nTransferred;
2715 public bool bInbound;
2716 }
2717
2721 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2722 public struct RemoteFile
2723 {
2725 public int nChannelID;
2727 public int nFileID;
2729 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2730 public string szFileName;
2732 public long nFileSize;
2734 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2735 public string szUsername;
2738 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2739 public string szUploadTime;
2740 }
2751 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2752 public struct EncryptionContext
2753 {
2759 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2760 public string szCertificateFile;
2762 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2763 public string szPrivateKeyFile;
2768 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2769 public string szCAFile;
2772 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
2773 public string szCADir;
2780 public bool bVerifyPeer;
2791 public bool bVerifyClientOnce;
2799 public int nVerifyDepth;
2800 }
2801
2809 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2810 public struct ClientKeepAlive
2811 {
2822 public int nConnectionLostMSec;
2826 public int nTcpKeepAliveIntervalMSec;
2832 public int nUdpKeepAliveIntervalMSec;
2838 public int nUdpKeepAliveRTXMSec;
2845 public int nUdpConnectRTXMSec;
2853 public int nUdpConnectTimeoutMSec;
2854 }
2855
2860 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2861 public struct ClientStatistics
2862 {
2864 public long nUdpBytesSent;
2866 public long nUdpBytesRecv;
2868 public long nVoiceBytesSent;
2870 public long nVoiceBytesRecv;
2872 public long nVideoCaptureBytesSent;
2874 public long nVideoCaptureBytesRecv;
2876 public long nMediaFileAudioBytesSent;
2878 public long nMediaFileAudioBytesRecv;
2880 public long nMediaFileVideoBytesSent;
2882 public long nMediaFileVideoBytesRecv;
2884 public long nDesktopBytesSent;
2886 public long nDesktopBytesRecv;
2890 public int nUdpPingTimeMs;
2894 public int nTcpPingTimeMs;
2897 public int nTcpServerSilenceSec;
2900 public int nUdpServerSilenceSec;
2912 public int nSoundInputDeviceDelayMSec;
2913 }
2914
2920 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
2921 public struct JitterConfig
2922 {
2924 public int nFixedDelayMSec;
2926 public bool bUseAdativeDejitter;
2929 public int nMaxAdaptiveDelayMSec;
2936 public int nActiveAdaptiveDelayMSec;
2937 }
2938
2939
2949 public enum ClientError : uint
2950 {
2952 CMDERR_SUCCESS = 0,
2953 SUCCESS = 0,
2954
2955 /* COMMAND ERRORS 1000-1999 ARE DUE TO INVALID OR UNSUPPORTED
2956 * COMMANDS */
2957
2959 CMDERR_SYNTAX_ERROR = 1000,
2964 CMDERR_UNKNOWN_COMMAND = 1001,
2967 CMDERR_MISSING_PARAMETER = 1002,
2970 CMDERR_INCOMPATIBLE_PROTOCOLS = 1003,
2975 CMDERR_UNKNOWN_AUDIOCODEC = 1004,
2978 CMDERR_INVALID_USERNAME = 1005,
2979
2980 /* COMMAND ERRORS 2000-2999 ARE DUE TO INSUFFICIENT RIGHTS */
2981
2986 CMDERR_INCORRECT_SERVER_PASSWORD = 2000,
2992 CMDERR_INCORRECT_CHANNEL_PASSWORD = 2001,
2998 CMDERR_INVALID_ACCOUNT = 2002,
3004 CMDERR_MAX_SERVER_USERS_EXCEEDED = 2003,
3010 CMDERR_MAX_CHANNEL_USERS_EXCEEDED = 2004,
3015 CMDERR_SERVER_BANNED = 2005,
3047 CMDERR_NOT_AUTHORIZED = 2006,
3054 CMDERR_MAX_DISKUSAGE_EXCEEDED = 2008,
3055
3061 CMDERR_INCORRECT_OP_PASSWORD = 2010,
3062
3068 CMDERR_AUDIOCODEC_BITRATE_LIMIT_EXCEEDED = 2011,
3069
3075 CMDERR_MAX_LOGINS_PER_IPADDRESS_EXCEEDED = 2012,
3076
3079 CMDERR_MAX_CHANNELS_EXCEEDED = 2013,
3080
3085 CMDERR_COMMAND_FLOOD = 2014,
3086
3092 CMDERR_CHANNEL_BANNED = 2015,
3093
3094 /* COMMAND ERRORS 3000-3999 ARE DUE TO INVALID STATE OF CLIENT INSTANCE */
3095
3101 CMDERR_NOT_LOGGEDIN = 3000,
3102
3106 CMDERR_ALREADY_LOGGEDIN = 3001,
3110 CMDERR_NOT_IN_CHANNEL = 3002,
3115 CMDERR_ALREADY_IN_CHANNEL = 3003,
3119 CMDERR_CHANNEL_ALREADY_EXISTS = 3004,
3137 CMDERR_CHANNEL_NOT_FOUND = 3005,
3148 CMDERR_USER_NOT_FOUND = 3006,
3153 CMDERR_BAN_NOT_FOUND = 3007,
3158 CMDERR_FILETRANSFER_NOT_FOUND = 3008,
3163 CMDERR_OPENFILE_FAILED = 3009,
3168 CMDERR_ACCOUNT_NOT_FOUND = 3010,
3173 CMDERR_FILE_NOT_FOUND = 3011,
3178 CMDERR_FILE_ALREADY_EXISTS = 3012,
3183 CMDERR_FILESHARING_DISABLED = 3013,
3184
3188 CMDERR_CHANNEL_HAS_USERS = 3015,
3189
3193 CMDERR_LOGINSERVICE_UNAVAILABLE = 3016,
3194
3199 CMDERR_CHANNEL_CANNOT_BE_HIDDEN = 3017,
3200
3201 /* ERRORS 10000-10999 ARE NOT COMMAND ERRORS BUT INSTEAD
3202 * ERRORS IN THE CLIENT INSTANCE. */
3203
3208 INTERR_SNDINPUT_FAILURE = 10000,
3213 INTERR_SNDOUTPUT_FAILURE = 10001,
3217 INTERR_AUDIOCODEC_INIT_FAILED = 10002,
3219 INTERR_SPEEXDSP_INIT_FAILED = 10003,
3227 INTERR_AUDIOPREPROCESSOR_INIT_FAILED = 10003,
3235 INTERR_TTMESSAGE_QUEUE_OVERFLOW = 10004,
3242 INTERR_SNDEFFECT_FAILURE = 10005,
3243 }
3244
3245 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
3246 public struct ClientErrorMsg
3247 {
3249 public int nErrorNo;
3251 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
3252 public string szErrorMsg;
3253 }
3254
3264 public enum ClientEvent : uint
3265 {
3266 CLIENTEVENT_NONE = 0,
3278 CLIENTEVENT_CON_SUCCESS = CLIENTEVENT_NONE + 10,
3288 CLIENTEVENT_CON_FAILED = CLIENTEVENT_NONE + 20,
3304 CLIENTEVENT_CON_LOST = CLIENTEVENT_NONE + 30,
3315 CLIENTEVENT_CON_MAX_PAYLOAD_UPDATED = CLIENTEVENT_NONE + 40,
3329 CLIENTEVENT_CMD_PROCESSING = CLIENTEVENT_NONE + 200,
3343 CLIENTEVENT_CMD_ERROR = CLIENTEVENT_NONE + 210,
3355 CLIENTEVENT_CMD_SUCCESS = CLIENTEVENT_NONE + 220,
3373 CLIENTEVENT_CMD_MYSELF_LOGGEDIN = CLIENTEVENT_NONE + 230,
3382 CLIENTEVENT_CMD_MYSELF_LOGGEDOUT = CLIENTEVENT_NONE + 240,
3392 CLIENTEVENT_CMD_MYSELF_KICKED = CLIENTEVENT_NONE + 250,
3403 CLIENTEVENT_CMD_USER_LOGGEDIN = CLIENTEVENT_NONE + 260,
3417 CLIENTEVENT_CMD_USER_LOGGEDOUT = CLIENTEVENT_NONE + 270,
3426 CLIENTEVENT_CMD_USER_UPDATE = CLIENTEVENT_NONE + 280,
3435 CLIENTEVENT_CMD_USER_JOINED = CLIENTEVENT_NONE + 290,
3442 CLIENTEVENT_CMD_USER_LEFT = CLIENTEVENT_NONE + 300,
3452 CLIENTEVENT_CMD_USER_TEXTMSG = CLIENTEVENT_NONE + 310,
3461 CLIENTEVENT_CMD_CHANNEL_NEW = CLIENTEVENT_NONE + 320,
3470 CLIENTEVENT_CMD_CHANNEL_UPDATE = CLIENTEVENT_NONE + 330,
3480 CLIENTEVENT_CMD_CHANNEL_REMOVE = CLIENTEVENT_NONE + 340,
3491 CLIENTEVENT_CMD_SERVER_UPDATE = CLIENTEVENT_NONE + 350,
3500 CLIENTEVENT_CMD_SERVERSTATISTICS = CLIENTEVENT_NONE + 360,
3512 CLIENTEVENT_CMD_FILE_NEW = CLIENTEVENT_NONE + 370,
3519 CLIENTEVENT_CMD_FILE_REMOVE = CLIENTEVENT_NONE + 380,
3528 CLIENTEVENT_CMD_USERACCOUNT = CLIENTEVENT_NONE + 390,
3537 CLIENTEVENT_CMD_BANNEDUSER = CLIENTEVENT_NONE + 400,
3557 CLIENTEVENT_USER_STATECHANGE = CLIENTEVENT_NONE + 500,
3570 CLIENTEVENT_USER_VIDEOCAPTURE = CLIENTEVENT_NONE + 510,
3583 CLIENTEVENT_USER_MEDIAFILE_VIDEO = CLIENTEVENT_NONE + 520,
3598 CLIENTEVENT_USER_DESKTOPWINDOW = CLIENTEVENT_NONE + 530,
3609 CLIENTEVENT_USER_DESKTOPCURSOR = CLIENTEVENT_NONE + 540,
3632 CLIENTEVENT_USER_DESKTOPINPUT = CLIENTEVENT_NONE + 550,
3645 CLIENTEVENT_USER_RECORD_MEDIAFILE = CLIENTEVENT_NONE + 560,
3659 CLIENTEVENT_USER_AUDIOBLOCK = CLIENTEVENT_NONE + 570,
3673 CLIENTEVENT_INTERNAL_ERROR = CLIENTEVENT_NONE + 1000,
3687 CLIENTEVENT_VOICE_ACTIVATION = CLIENTEVENT_NONE + 1010,
3698 CLIENTEVENT_HOTKEY = CLIENTEVENT_NONE + 1020,
3717 CLIENTEVENT_HOTKEY_TEST = CLIENTEVENT_NONE + 1030,
3734 CLIENTEVENT_FILETRANSFER = CLIENTEVENT_NONE + 1040,
3750 CLIENTEVENT_DESKTOPWINDOW_TRANSFER = CLIENTEVENT_NONE + 1050,
3763 CLIENTEVENT_STREAM_MEDIAFILE = CLIENTEVENT_NONE + 1060,
3775 CLIENTEVENT_LOCAL_MEDIAFILE = CLIENTEVENT_NONE + 1070,
3797 CLIENTEVENT_AUDIOINPUT = CLIENTEVENT_NONE + 1080,
3817 CLIENTEVENT_USER_FIRSTVOICESTREAMPACKET = CLIENTEVENT_NONE + 1090,
3818 }
3819
3820
3821 /* List of structures used internally by TeamTalkBase. */
3822 public enum TTType : uint
3823 {
3824 __NONE = 0,
3825 __AUDIOCODEC = 1,
3826 __BANNEDUSER = 2,
3827 __VIDEOFORMAT = 3,
3828 __OPUSCODEC = 4,
3829 __CHANNEL = 5,
3830 __CLIENTSTATISTICS = 6,
3831 __REMOTEFILE = 7,
3832 __FILETRANSFER = 8,
3833 __MEDIAFILESTATUS = 9,
3834 __SERVERPROPERTIES = 10,
3835 __SERVERSTATISTICS = 11,
3836 __SOUNDDEVICE = 12,
3837 __SPEEXCODEC = 13,
3838 __TEXTMESSAGE = 14,
3839 __WEBMVP8CODEC = 15,
3840 __TTMESSAGE = 16,
3841 __USER = 17,
3842 __USERACCOUNT = 18,
3843 __USERSTATISTICS = 19,
3844 __VIDEOCAPTUREDEVICE = 20,
3845 __VIDEOCODEC = 21,
3846 __AUDIOCONFIG = 22,
3847 __SPEEXVBRCODEC = 23,
3848 __VIDEOFRAME = 24,
3849 __AUDIOBLOCK = 25,
3850 __AUDIOFORMAT = 26,
3851 __MEDIAFILEINFO = 27,
3852 __CLIENTERRORMSG = 28,
3853 __TTBOOL = 29,
3854 __INT32 = 30,
3855 __DESKTOPINPUT = 31,
3856 __SPEEXDSP = 32,
3857 __STREAMTYPE = 33,
3858 __AUDIOPREPROCESSORTYPE = 34,
3859 __AUDIOPREPROCESSOR = 35,
3860 __TTAUDIOPREPROCESSOR = 36,
3861 __MEDIAFILEPLAYBACK = 37,
3862 __CLIENTKEEPALIVE = 38,
3863 __UINT32 = 39,
3864 __AUDIOINPUTPROGRESS = 40,
3865 __JITTERCONFIG = 41,
3866 __WEBRTCAUDIOPREPROCESSOR = 42,
3867 __ENCRYPTIONCONTEXT = 43,
3868 }
3869
3880 [StructLayout(LayoutKind.Sequential)]
3881 public struct TTMessage
3882 {
3884 public ClientEvent nClientEvent;
3886 public int nSource;
3888 public TTType ttType;
3890 public uint uReserved;
3891 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6248)]
3892 public byte[] data;
3893 //UnionData data;
3894
3895 public object DataToObject()
3896 {
3897 switch (ttType)
3898 {
3899 case TTType.__CHANNEL:
3900 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(Channel));
3901 case TTType.__CLIENTERRORMSG:
3902 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(ClientErrorMsg));
3903 case TTType.__DESKTOPINPUT:
3904 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(DesktopInput));
3905 case TTType.__FILETRANSFER:
3906 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(FileTransfer));
3907 case TTType.__MEDIAFILEINFO:
3908 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(MediaFileInfo));
3909 case TTType.__REMOTEFILE:
3910 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(RemoteFile));
3911 case TTType.__SERVERPROPERTIES:
3912 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(ServerProperties));
3913 case TTType.__SERVERSTATISTICS:
3914 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(ServerStatistics));
3915 case TTType.__TEXTMESSAGE:
3916 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(TextMessage));
3917 case TTType.__USER:
3918 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(User));
3919 case TTType.__USERACCOUNT:
3920 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(UserAccount));
3921 case TTType.__BANNEDUSER :
3922 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(BannedUser));
3923 case TTType.__TTBOOL:
3924 return Marshal.ReadInt32(TTDLL.TT_DBG_GETDATAPTR(ref this)) != 0;
3925 case TTType.__INT32:
3926 return Marshal.ReadInt32(TTDLL.TT_DBG_GETDATAPTR(ref this));
3927 case TTType.__STREAMTYPE :
3928 return (StreamType)Marshal.ReadInt32(TTDLL.TT_DBG_GETDATAPTR(ref this));
3929 case TTType.__AUDIOINPUTPROGRESS :
3930 return Marshal.PtrToStructure(TTDLL.TT_DBG_GETDATAPTR(ref this), typeof(AudioInputProgress));
3931 default:
3932 return null;
3933 }
3934 }
3935 }
3936
3937 [StructLayout(LayoutKind.Explicit, Size = 5224)]
3938 struct UnionData
3939 {
3940 [FieldOffset(0)]
3941 public ClientErrorMsg clienterrormsg;
3942 [FieldOffset(0)]
3943 public Channel channel;
3944 [FieldOffset(0)]
3945 public DesktopInput desktopinput;
3946 [FieldOffset(0)]
3947 public FileTransfer filetransfer;
3948 [FieldOffset(0)]
3949 public MediaFileInfo mediafileinfo;
3950 [FieldOffset(0)]
3951 public RemoteFile remotefile;
3952 [FieldOffset(0)]
3953 public ServerProperties serverproperties;
3954 [FieldOffset(0)]
3955 public TextMessage textmessage;
3956 [FieldOffset(0)]
3957 public User user;
3958 [FieldOffset(0)]
3959 public UserAccount useraccount;
3960 [FieldOffset(0)]
3961 public bool bActive;
3962 [FieldOffset(0)]
3963 public int nBytesRemain;
3964 [FieldOffset(0)]
3965 public int nStreamID;
3966 [FieldOffset(0)]
3967 public int nPayloadSize;
3968 }
3969
3987 [Flags]
3988 public enum ClientFlag : uint
3989 {
3992 CLIENT_CLOSED = 0x00000000,
3996 CLIENT_SNDINPUT_READY = 0x00000001,
4000 CLIENT_SNDOUTPUT_READY = 0x00000002,
4006 CLIENT_SNDINOUTPUT_DUPLEX = 0x00000004,
4013 CLIENT_SNDINPUT_VOICEACTIVATED = 0x00000008,
4020 CLIENT_SNDINPUT_VOICEACTIVE = 0x00000010,
4023 CLIENT_SNDOUTPUT_MUTE = 0x00000020,
4029 CLIENT_SNDOUTPUT_AUTO3DPOSITION = 0x00000040,
4033 CLIENT_VIDEOCAPTURE_READY = 0x00000080,
4036 CLIENT_TX_VOICE = 0x00000100,
4039 CLIENT_TX_VIDEOCAPTURE = 0x00000200,
4045 CLIENT_TX_DESKTOP = 0x00000400,
4050 CLIENT_DESKTOP_ACTIVE = 0x00000800,
4054 CLIENT_MUX_AUDIOFILE = 0x00001000,
4057 CLIENT_CONNECTING = 0x00002000,
4062 CLIENT_CONNECTED = 0x00004000,
4065 CLIENT_CONNECTION = CLIENT_CONNECTING | CLIENT_CONNECTED,
4069 CLIENT_AUTHORIZED = 0x00008000,
4074 CLIENT_STREAM_AUDIO = 0x00010000,
4079 CLIENT_STREAM_VIDEO = 0x00020000
4080 }
4081
4089 public abstract class TeamTalkBase : IDisposable
4090 {
4099 public const int TT_STRLEN = 512;
4100
4102 public const int TT_USERID_MAX = 0xFFF;
4103
4106 public const int TT_CHANNELID_MAX = 0xFFF;
4107
4111 public const int TT_VIDEOFORMATS_MAX = 1024;
4112
4118 public const int TT_TRANSMITUSERS_MAX = 128;
4119
4127 public const int TT_CLASSROOM_FREEFORALL = 0xFFF;
4128
4131 public const int TT_CLASSROOM_USERID_INDEX = 0;
4132
4135 public const int TT_CLASSROOM_STREAMTYPE_INDEX = 1;
4136
4139 public const int TT_TRANSMITUSERS_FREEFORALL = 0xFFF;
4140
4143 public const int TT_TRANSMITUSERS_USERID_INDEX = 0;
4144
4147 public const int TT_TRANSMITUSERS_STREAMTYPE_INDEX = 1;
4148
4162 public const int TT_LOCAL_USERID = 0;
4163
4171 public const int TT_LOCAL_TX_USERID = 0x1002;
4172
4180 public const int TT_MUXED_USERID = 0x1001; /* TT_USERID_MAX + 2 */
4181
4186 public const int TT_CHANNELS_OPERATOR_MAX = 16;
4187
4191 public const int TT_TRANSMITQUEUE_MAX = 16;
4192
4195 public const int TT_SAMPLERATES_MAX = 16;
4196
4201 public const int TT_DESKTOPINPUT_MAX = 16;
4202
4211 public const uint TT_MEDIAPLAYBACK_OFFSET_IGNORE = 0xFFFFFFFF;
4212
4213
4215 public static string GetVersion() { return Marshal.PtrToStringAuto(TTDLL.TT_GetVersion()); }
4216
4227 protected TeamTalkBase(bool poll_based)
4228 {
4229 Assembly assembly = Assembly.GetExecutingAssembly();
4230 AssemblyName name = assembly.GetName();
4231 Version dllversion = new Version(Marshal.PtrToStringUni((c_tt.TTDLL.TT_GetVersion())));
4232 if (!name.Version.Equals(dllversion))
4233 {
4234 string errmsg = String.Format("Invalid {2} version loaded. {2} is version {0} and {3} is version {1}",
4235 dllversion.ToString(), name.Version.ToString(), c_tt.TTDLL.dllname, c_tt.TTDLL.mgtdllname);
4236
4237 // throw new Exception(errmsg);
4238
4239 System.Diagnostics.Debug.WriteLine(errmsg);
4240 }
4241
4242 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOCODEC) == Marshal.SizeOf(new AudioCodec()));
4243 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__BANNEDUSER) == Marshal.SizeOf(new BannedUser()));
4244 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__VIDEOFORMAT) == Marshal.SizeOf(new VideoFormat()));
4245 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__OPUSCODEC) == Marshal.SizeOf(new OpusCodec()));
4246 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__CHANNEL) == Marshal.SizeOf(new Channel()));
4247 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__CLIENTSTATISTICS) == Marshal.SizeOf(new ClientStatistics()));
4248 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__REMOTEFILE) == Marshal.SizeOf(new RemoteFile()));
4249 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__FILETRANSFER) == Marshal.SizeOf(new FileTransfer()));
4250 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__MEDIAFILESTATUS) == Marshal.SizeOf(Enum.GetUnderlyingType(typeof(MediaFileStatus))));
4251 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__SERVERPROPERTIES) == Marshal.SizeOf(new ServerProperties()));
4252 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__SERVERSTATISTICS) == Marshal.SizeOf(new ServerStatistics()));
4253 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__SOUNDDEVICE) == Marshal.SizeOf(new SoundDevice()));
4254 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__SPEEXCODEC) == Marshal.SizeOf(new SpeexCodec()));
4255 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__TEXTMESSAGE) == Marshal.SizeOf(new TextMessage()));
4256 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__WEBMVP8CODEC) == Marshal.SizeOf(new WebMVP8Codec()));
4257 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__TTMESSAGE) == Marshal.SizeOf(new TTMessage()));
4258 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__USER) == Marshal.SizeOf(new User()));
4259 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__USERACCOUNT) == Marshal.SizeOf(new UserAccount()));
4260 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__USERSTATISTICS) == Marshal.SizeOf(new UserStatistics()));
4261 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__VIDEOCAPTUREDEVICE) == Marshal.SizeOf(new VideoCaptureDevice()));
4262 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__VIDEOCODEC) == Marshal.SizeOf(new VideoCodec()));
4263 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOCONFIG) == Marshal.SizeOf(new AudioConfig()));
4264 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__SPEEXVBRCODEC) == Marshal.SizeOf(new SpeexVBRCodec()));
4265 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__VIDEOFRAME) == Marshal.SizeOf(new VideoFrame()));
4266 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOBLOCK) == Marshal.SizeOf(new AudioBlock()));
4267 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOFORMAT) == Marshal.SizeOf(new AudioFormat()));
4268 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__MEDIAFILEINFO) == Marshal.SizeOf(new MediaFileInfo()));
4269 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__CLIENTERRORMSG) == Marshal.SizeOf(new ClientErrorMsg()));
4270 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__DESKTOPINPUT) == Marshal.SizeOf(new DesktopInput()));
4271 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__SPEEXDSP) == Marshal.SizeOf(new SpeexDSP()));
4272 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__STREAMTYPE) == Marshal.SizeOf(Enum.GetUnderlyingType(typeof(StreamType))));
4273 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOPREPROCESSORTYPE) == Marshal.SizeOf(Enum.GetUnderlyingType(typeof(AudioPreprocessorType))));
4274 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__WEBRTCAUDIOPREPROCESSOR) == Marshal.SizeOf(new WebRTCAudioPreprocessor()));
4275 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__TTAUDIOPREPROCESSOR) == Marshal.SizeOf(new TTAudioPreprocessor()));
4276 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOPREPROCESSOR) == Marshal.SizeOf(new AudioPreprocessor()));
4277 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__MEDIAFILEPLAYBACK) == Marshal.SizeOf(new MediaFilePlayback()));
4278 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__CLIENTKEEPALIVE) == Marshal.SizeOf(new ClientKeepAlive()));
4279 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__AUDIOINPUTPROGRESS) == Marshal.SizeOf(new AudioInputProgress()));
4280 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__JITTERCONFIG) == Marshal.SizeOf(new JitterConfig()));
4281 Debug.Assert(TTDLL.TT_DBG_SIZEOF(TTType.__ENCRYPTIONCONTEXT) == Marshal.SizeOf(new EncryptionContext()));
4282
4283 if (poll_based)
4284 m_ttInst = TTDLL.TT_InitTeamTalkPoll();
4285 else
4286 {
4287 m_eventhandler = new MyEventHandler(this);
4288 #if PocketPC
4289 IntPtr hWnd = m_eventhandler.Hwnd;
4290 #else
4291 m_eventhandler.CreateControl();
4292 IntPtr hWnd = m_eventhandler.Handle;
4293 #endif
4294 m_ttInst = TTDLL.TT_InitTeamTalk(hWnd, MyEventHandler.WM_TEAMTALK_CLIENTEVENT);
4295 }
4296 }
4297
4302 ~TeamTalkBase()
4303 {
4304 DeleteMe();
4305 }
4306
4307
4308 #region IDisposable Members
4309
4310 public void Dispose()
4311 {
4312 DeleteMe();
4313 }
4314
4315 private void DeleteMe()
4316 {
4317 if (m_ttInst != IntPtr.Zero)
4318 {
4319 TTDLL.TT_CloseTeamTalk(m_ttInst);
4320 m_ttInst = IntPtr.Zero;
4321 }
4322 }
4323
4324 #endregion
4325
4343 public bool GetMessage(ref TTMessage pMsg, int nWaitMs)
4344 {
4345 return TTDLL.TT_GetMessage(m_ttInst, ref pMsg, ref nWaitMs);
4346 }
4347
4374 public bool PumpMessage(ClientEvent nClientEvent,
4375 int nIdentifier)
4376 {
4377 return TTDLL.TT_PumpMessage(m_ttInst, nClientEvent, nIdentifier);
4378 }
4379
4388 public BearWare.ClientFlag GetFlags()
4389 {
4390 return TTDLL.TT_GetFlags(m_ttInst);
4391 }
4392
4396 public ClientFlag Flags
4397 {
4398 get { return GetFlags(); }
4399 }
4400
4410 public static bool SetLicenseInformation(string szRegName, string szRegKey)
4411 {
4412 return TTDLL.TT_SetLicenseInformation(szRegName, szRegKey);
4413 }
4414
4419 public void ProcessMsg(TTMessage msg)
4420 {
4421 switch (msg.nClientEvent)
4422 {
4423 case ClientEvent.CLIENTEVENT_CON_SUCCESS:
4424 if(OnConnectionSuccess != null)
4425 OnConnectionSuccess();
4426 break;
4427 case ClientEvent.CLIENTEVENT_CON_FAILED:
4428 if (OnConnectionFailed != null)
4429 OnConnectionFailed();
4430 break;
4431 case ClientEvent.CLIENTEVENT_CON_LOST:
4432 if (OnConnectionLost != null)
4433 OnConnectionLost();
4434 break;
4435 case ClientEvent.CLIENTEVENT_CON_MAX_PAYLOAD_UPDATED :
4436 if (OnConnectionMaxPayloadUpdated != null)
4437 OnConnectionMaxPayloadUpdated((int)msg.DataToObject());
4438 break;
4439 case ClientEvent.CLIENTEVENT_CMD_PROCESSING:
4440 if (OnCmdProcessing != null)
4441 OnCmdProcessing(msg.nSource, (bool)msg.DataToObject());
4442 break;
4443 case ClientEvent.CLIENTEVENT_CMD_ERROR:
4444 if (OnCmdError != null)
4445 OnCmdError((int)msg.nSource, (ClientErrorMsg)msg.DataToObject());
4446 break;
4447 case ClientEvent.CLIENTEVENT_CMD_SUCCESS :
4448 if (OnCmdSuccess != null)
4449 OnCmdSuccess((int)msg.nSource);
4450 break;
4451 case ClientEvent.CLIENTEVENT_CMD_MYSELF_LOGGEDIN:
4452 if (OnCmdMyselfLoggedIn != null)
4453 OnCmdMyselfLoggedIn((int)msg.nSource, (UserAccount)msg.DataToObject());
4454 break;
4455 case ClientEvent.CLIENTEVENT_CMD_MYSELF_LOGGEDOUT:
4456 if (OnCmdMyselfLoggedOut != null)
4457 OnCmdMyselfLoggedOut();
4458 break;
4459 case ClientEvent.CLIENTEVENT_CMD_MYSELF_KICKED:
4460 if (msg.ttType == TTType.__USER)
4461 {
4462 if (OnCmdMyselfKicked != null)
4463 OnCmdMyselfKicked((User)msg.DataToObject());
4464 }
4465 else if (OnCmdMyselfKicked != null)
4466 OnCmdMyselfKicked(new User());
4467 break;
4468 case ClientEvent.CLIENTEVENT_CMD_USER_LOGGEDIN:
4469 if (OnCmdUserLoggedIn != null)
4470 OnCmdUserLoggedIn((User)msg.DataToObject());
4471 break;
4472 case ClientEvent.CLIENTEVENT_CMD_USER_LOGGEDOUT:
4473 if (OnCmdUserLoggedOut != null)
4474 OnCmdUserLoggedOut((User)msg.DataToObject());
4475 break;
4476 case ClientEvent.CLIENTEVENT_CMD_USER_UPDATE:
4477 if (OnCmdUserUpdate != null)
4478 OnCmdUserUpdate((User)msg.DataToObject());
4479 break;
4480 case ClientEvent.CLIENTEVENT_CMD_USER_JOINED:
4481 if (OnCmdUserJoinedChannel != null)
4482 OnCmdUserJoinedChannel((User)msg.DataToObject());
4483 break;
4484 case ClientEvent.CLIENTEVENT_CMD_USER_LEFT:
4485 if (OnCmdUserLeftChannel != null)
4486 OnCmdUserLeftChannel((User)msg.DataToObject());
4487 break;
4488 case ClientEvent.CLIENTEVENT_CMD_USER_TEXTMSG:
4489 if (OnCmdUserTextMessage != null)
4490 OnCmdUserTextMessage((TextMessage)msg.DataToObject());
4491 break;
4492 case ClientEvent.CLIENTEVENT_CMD_CHANNEL_NEW:
4493 if (OnCmdChannelNew != null)
4494 OnCmdChannelNew((Channel)msg.DataToObject());
4495 break;
4496 case ClientEvent.CLIENTEVENT_CMD_CHANNEL_UPDATE:
4497 if (OnCmdChannelUpdate != null)
4498 OnCmdChannelUpdate((Channel)msg.DataToObject());
4499 break;
4500 case ClientEvent.CLIENTEVENT_CMD_CHANNEL_REMOVE:
4501 if (OnCmdChannelRemove != null)
4502 OnCmdChannelRemove((Channel)msg.DataToObject());
4503 break;
4504 case ClientEvent.CLIENTEVENT_CMD_SERVER_UPDATE:
4505 if (OnCmdServerUpdate != null)
4506 OnCmdServerUpdate((ServerProperties)msg.DataToObject());
4507 break;
4508 case ClientEvent.CLIENTEVENT_CMD_SERVERSTATISTICS :
4509 if (OnCmdServerStatistics != null)
4510 OnCmdServerStatistics((ServerStatistics)msg.DataToObject());
4511 break;
4512 case ClientEvent.CLIENTEVENT_CMD_FILE_NEW:
4513 if (OnCmdFileNew != null)
4514 OnCmdFileNew((RemoteFile)msg.DataToObject());
4515 break;
4516 case ClientEvent.CLIENTEVENT_CMD_FILE_REMOVE:
4517 if (OnCmdFileRemove != null)
4518 OnCmdFileRemove((RemoteFile)msg.DataToObject());
4519 break;
4520 case ClientEvent.CLIENTEVENT_CMD_USERACCOUNT :
4521 if (OnCmdUserAccount != null)
4522 OnCmdUserAccount((UserAccount)msg.DataToObject());
4523 break;
4524 case ClientEvent.CLIENTEVENT_CMD_BANNEDUSER :
4525 if (OnCmdBannedUser != null)
4526 OnCmdBannedUser((BannedUser)msg.DataToObject());
4527 break;
4528
4529 case ClientEvent.CLIENTEVENT_USER_STATECHANGE :
4530 if (OnUserStateChange != null)
4531 OnUserStateChange((User)msg.DataToObject());
4532 break;
4533 case ClientEvent.CLIENTEVENT_USER_VIDEOCAPTURE:
4534 if (OnUserVideoCapture != null)
4535 OnUserVideoCapture(msg.nSource, (int)msg.DataToObject());
4536 break;
4537 case ClientEvent.CLIENTEVENT_USER_MEDIAFILE_VIDEO:
4538 if (OnUserMediaFileVideo != null)
4539 OnUserMediaFileVideo((int)msg.nSource, (int)msg.DataToObject());
4540 break;
4541 case ClientEvent.CLIENTEVENT_USER_DESKTOPWINDOW:
4542 if (OnUserDesktopWindow != null)
4543 OnUserDesktopWindow((int)msg.nSource, (int)msg.DataToObject());
4544 break;
4545 case ClientEvent.CLIENTEVENT_USER_DESKTOPCURSOR:
4546 if (OnUserDesktopCursor != null)
4547 OnUserDesktopCursor((int)msg.nSource, (DesktopInput)msg.DataToObject());
4548 break;
4549 case ClientEvent.CLIENTEVENT_USER_DESKTOPINPUT :
4550 if (OnUserDesktopInput != null)
4551 OnUserDesktopInput((int)msg.nSource, (DesktopInput)msg.DataToObject());
4552 break;
4553 case ClientEvent.CLIENTEVENT_USER_RECORD_MEDIAFILE :
4554 if(OnUserRecordMediaFile != null)
4555 OnUserRecordMediaFile((int)msg.nSource, (MediaFileInfo)msg.DataToObject());
4556 break;
4557 case ClientEvent.CLIENTEVENT_USER_AUDIOBLOCK :
4558 if(OnUserAudioBlock != null)
4559 OnUserAudioBlock((int)msg.nSource, (StreamType)msg.DataToObject());
4560 break;
4561 case ClientEvent.CLIENTEVENT_INTERNAL_ERROR :
4562 if(OnInternalError!= null)
4563 OnInternalError((ClientErrorMsg)msg.DataToObject());
4564 break;
4565 case ClientEvent.CLIENTEVENT_VOICE_ACTIVATION :
4566 if(OnVoiceActivation != null)
4567 OnVoiceActivation((bool)msg.DataToObject());
4568 break;
4569 case ClientEvent.CLIENTEVENT_HOTKEY :
4570 if(OnHotKeyToggle != null)
4571 OnHotKeyToggle(msg.nSource, (bool)msg.DataToObject());
4572 break;
4573 case ClientEvent.CLIENTEVENT_HOTKEY_TEST :
4574 if(OnHotKeyTest != null)
4575 OnHotKeyTest(msg.nSource, (bool)msg.DataToObject());
4576 break;
4577 case ClientEvent.CLIENTEVENT_FILETRANSFER :
4578 if(OnFileTransfer != null)
4579 OnFileTransfer((FileTransfer)msg.DataToObject());
4580 break;
4581 case ClientEvent.CLIENTEVENT_DESKTOPWINDOW_TRANSFER :
4582 if(OnDesktopWindowTransfer != null)
4583 OnDesktopWindowTransfer(msg.nSource, (int)msg.DataToObject());
4584 break;
4585 case ClientEvent.CLIENTEVENT_STREAM_MEDIAFILE :
4586 if(OnStreamMediaFile != null)
4587 OnStreamMediaFile((MediaFileInfo)msg.DataToObject());
4588 break;
4589 case ClientEvent.CLIENTEVENT_LOCAL_MEDIAFILE:
4590 if (OnLocalMediaFile != null)
4591 OnLocalMediaFile((MediaFileInfo)msg.DataToObject());
4592 break;
4593 case ClientEvent.CLIENTEVENT_AUDIOINPUT:
4594 if (OnAudioInput != null)
4595 OnAudioInput((AudioInputProgress)msg.DataToObject());
4596 break;
4597 case ClientEvent.CLIENTEVENT_USER_FIRSTVOICESTREAMPACKET:
4598 if (OnUserFirstVoiceStreamPacket != null)
4599 OnUserFirstVoiceStreamPacket((User)msg.DataToObject(), msg.nSource);
4600 break;
4601 }
4602 }
4603
4616 public static bool GetDefaultSoundDevices(ref int lpnInputDeviceID,
4617 ref int lpnOutputDeviceID)
4618 {
4619 return TTDLL.TT_GetDefaultSoundDevices(ref lpnInputDeviceID, ref lpnOutputDeviceID);
4620 }
4625 public static bool GetDefaultSoundDevicesEx(SoundSystem nSndSystem,
4626 ref int lpnInputDeviceID,
4627 ref int lpnOutputDeviceID)
4628 {
4629 return TTDLL.TT_GetDefaultSoundDevicesEx(nSndSystem, ref lpnInputDeviceID, ref lpnOutputDeviceID);
4630 }
4639 public static bool GetSoundDevices(out SoundDevice[] lpSoundDevices)
4640 {
4641 int count = 0;
4642 bool b = TTDLL.TT_GetSoundDevices_NULL(IntPtr.Zero, ref count);
4643 SoundDevice[] devs = new SoundDevice[count];
4644 b = TTDLL.TT_GetSoundDevices(devs, ref count);
4645 lpSoundDevices = b ? devs : null;
4646 return b;
4647 }
4663 public static bool RestartSoundSystem()
4664 {
4665 return TTDLL.TT_RestartSoundSystem();
4666 }
4671 public static IntPtr StartSoundLoopbackTest(int nInputDeviceID, int nOutputDeviceID,
4672 int nSampleRate, int nChannels,
4673 bool bDuplexMode, SpeexDSP lpSpeexDSP)
4674 {
4675 return TTDLL.TT_StartSoundLoopbackTest(nInputDeviceID, nOutputDeviceID,
4676 nSampleRate, nChannels, bDuplexMode,
4677 ref lpSpeexDSP);
4678 }
4710 public static IntPtr StartSoundLoopbackTest(int nInputDeviceID, int nOutputDeviceID,
4711 int nSampleRate, int nChannels,
4712 bool bDuplexMode, AudioPreprocessor lpAudioPreprocessor,
4713 BearWare.SoundDeviceEffects lpSoundDeviceEffects)
4714 {
4715 return TTDLL.TT_StartSoundLoopbackTestEx(nInputDeviceID, nOutputDeviceID,
4716 nSampleRate, nChannels, bDuplexMode,
4717 ref lpAudioPreprocessor, ref lpSoundDeviceEffects);
4718 }
4725 public static bool CloseSoundLoopbackTest(IntPtr lpTTSoundLoop)
4726 {
4727 return TTDLL.TT_CloseSoundLoopbackTest(lpTTSoundLoop);
4728 }
4757 public bool InitSoundInputDevice(int nInputDeviceID)
4758 {
4759 return TTDLL.TT_InitSoundInputDevice(m_ttInst, nInputDeviceID);
4760 }
4761
4792 public bool InitSoundInputSharedDevice(int nSampleRate,int nChannels, int nFrameSize)
4793 {
4794 return TTDLL.TT_InitSoundInputSharedDevice(nSampleRate, nChannels, nFrameSize);
4795 }
4796
4825 public bool InitSoundOutputDevice(int nOutputDeviceID)
4826 {
4827 return TTDLL.TT_InitSoundOutputDevice(m_ttInst, nOutputDeviceID);
4828 }
4859 public bool InitSoundOutputSharedDevice(int nSampleRate, int nChannels,int nFrameSize)
4860 {
4861 return TTDLL.TT_InitSoundOutputSharedDevice(nSampleRate, nChannels, nFrameSize);
4862 }
4896 public bool InitSoundDuplexDevices(int nInputDeviceID, int nOutputDeviceID)
4897 {
4898 return TTDLL.TT_InitSoundDuplexDevices(m_ttInst, nInputDeviceID, nOutputDeviceID);
4899 }
4919 public bool CloseSoundInputDevice()
4920 {
4921 return TTDLL.TT_CloseSoundInputDevice(m_ttInst);
4922 }
4941 public bool CloseSoundOutputDevice()
4942 {
4943 return TTDLL.TT_CloseSoundOutputDevice(m_ttInst);
4944 }
4951 public bool CloseSoundDuplexDevices()
4952 {
4953 return TTDLL.TT_CloseSoundDuplexDevices(m_ttInst);
4954 }
4990 public bool SetSoundDeviceEffects(SoundDeviceEffects lpSoundDeviceEffect)
4991 {
4992 return TTDLL.TT_SetSoundDeviceEffects(m_ttInst, ref lpSoundDeviceEffect);
4993 }
4998 public bool GetSoundDeviceEffects(ref SoundDeviceEffects lpSoundDeviceEffect)
4999 {
5000 return TTDLL.TT_GetSoundDeviceEffects(m_ttInst, ref lpSoundDeviceEffect);
5001 }
5018 public int GetSoundInputLevel()
5019 {
5020 return TTDLL.TT_GetSoundInputLevel(m_ttInst);
5021 }
5037 public bool SetSoundInputGainLevel(int nLevel)
5038 {
5039 return TTDLL.TT_SetSoundInputGainLevel(m_ttInst, nLevel);
5040 }
5047 public int GetSoundInputGainLevel()
5048 {
5049 return TTDLL.TT_GetSoundInputGainLevel(m_ttInst);
5050 }
5051
5067 public bool SetSoundInputPreprocess(SpeexDSP lpSpeexDSP)
5068 {
5069 return TTDLL.TT_SetSoundInputPreprocess(m_ttInst, ref lpSpeexDSP);
5070 }
5071
5080 public bool GetSoundInputPreprocess(ref SpeexDSP lpSpeexDSP)
5081 {
5082 return TTDLL.TT_GetSoundInputPreprocess(m_ttInst, ref lpSpeexDSP);
5083 }
5095 public bool SetSoundInputPreprocess(AudioPreprocessor lpAudioPreprocessor)
5096 {
5097 return TTDLL.TT_SetSoundInputPreprocessEx(m_ttInst, ref lpAudioPreprocessor);
5098 }
5099
5107 public bool GetSoundInputPreprocess(ref AudioPreprocessor lpAudioPreprocessor)
5108 {
5109 return TTDLL.TT_GetSoundInputPreprocessEx(m_ttInst, ref lpAudioPreprocessor);
5110 }
5118 public bool SetSoundOutputVolume(int nVolume)
5119 {
5120 return TTDLL.TT_SetSoundOutputVolume(m_ttInst, nVolume);
5121 }
5128 public int GetSoundOutputVolume()
5129 {
5130 return TTDLL.TT_GetSoundOutputVolume(m_ttInst);
5131 }
5139 public bool SetSoundOutputMute(bool bMuteAll)
5140 {
5141 return TTDLL.TT_SetSoundOutputMute(m_ttInst, bMuteAll);
5142 }
5153 public bool Enable3DSoundPositioning(bool bEnable)
5154 {
5155 return TTDLL.TT_Enable3DSoundPositioning(m_ttInst, bEnable);
5156 }
5166 public bool AutoPositionUsers()
5167 {
5168 return TTDLL.TT_AutoPositionUsers(m_ttInst);
5169 }
5170
5234 public bool EnableAudioBlockEvent(int nUserID, StreamType uStreamTypes,
5235 bool bEnable)
5236 {
5237 return TTDLL.TT_EnableAudioBlockEvent(m_ttInst, nUserID, uStreamTypes, bEnable);
5238 }
5267 public bool EnableAudioBlockEvent(int nUserID, StreamType uStreamTypes,
5268 AudioFormat lpAudioFormat, bool bEnable)
5269 {
5270 return TTDLL.TT_EnableAudioBlockEventEx(m_ttInst, nUserID, uStreamTypes, ref lpAudioFormat, bEnable);
5271 }
5306 public bool InsertAudioBlock(AudioBlock lpAudioBlock)
5307 {
5308 return TTDLL.TT_InsertAudioBlock(m_ttInst, ref lpAudioBlock);
5309 }
5310
5328 public bool EnableVoiceTransmission(bool bEnable)
5329 {
5330 return TTDLL.TT_EnableVoiceTransmission(m_ttInst, bEnable);
5331 }
5332
5358 public bool EnableVoiceActivation(bool bEnable)
5359 {
5360 return TTDLL.TT_EnableVoiceActivation(m_ttInst, bEnable);
5361 }
5376 public bool SetVoiceActivationLevel(int nLevel)
5377 {
5378 return TTDLL.TT_SetVoiceActivationLevel(m_ttInst, nLevel);
5379 }
5386 public int GetVoiceActivationLevel()
5387 {
5388 return TTDLL.TT_GetVoiceActivationLevel(m_ttInst);
5389 }
5402 public bool SetVoiceActivationStopDelay(int nDelayMSec)
5403 {
5404 return TTDLL.TT_SetVoiceActivationStopDelay(m_ttInst, nDelayMSec);
5405 }
5406
5416 public int GetVoiceActivationStopDelay()
5417 {
5418 return TTDLL.TT_GetVoiceActivationStopDelay(m_ttInst);
5419 }
5420
5463 public bool StartRecordingMuxedAudioFile(AudioCodec lpAudioCodec,
5464 string szAudioFileName,
5465 AudioFileFormat uAFF)
5466 {
5467 return TTDLL.TT_StartRecordingMuxedAudioFile(m_ttInst,
5468 ref lpAudioCodec,
5469 szAudioFileName,
5470 uAFF);
5471 }
5472
5492 public bool StartRecordingMuxedAudioFile(int nChannelID,
5493 string szAudioFileName,
5494 AudioFileFormat uAFF)
5495 {
5496 return TTDLL.TT_StartRecordingMuxedAudioFileEx(m_ttInst,
5497 nChannelID,
5498 szAudioFileName,
5499 uAFF);
5500 }
5501
5502
5534 public bool StartRecordingMuxedStreams(StreamType uStreamTypes,
5535 AudioCodec lpAudioCodec,
5536 string szAudioFileName,
5537 AudioFileFormat uAFF)
5538 {
5539 return TTDLL.TT_StartRecordingMuxedStreams(m_ttInst, uStreamTypes, ref lpAudioCodec, szAudioFileName, uAFF);
5540 }
5541
5553 public bool StopRecordingMuxedAudioFile()
5554 {
5555 return TTDLL.TT_StopRecordingMuxedAudioFile(m_ttInst);
5556 }
5557
5564 public bool StopRecordingMuxedAudioFile(int nChannelID)
5565 {
5566 return TTDLL.TT_StopRecordingMuxedAudioFileEx(m_ttInst, nChannelID);
5567 }
5568
5591 public bool StartVideoCaptureTransmission(VideoCodec lpVideoCodec)
5592 {
5593 return TTDLL.TT_StartVideoCaptureTransmission(m_ttInst, ref lpVideoCodec);
5594 }
5595
5600 public bool StopVideoCaptureTransmission()
5601 {
5602 return TTDLL.TT_StopVideoCaptureTransmission(m_ttInst);
5603 }
5604
5616 public static bool GetVideoCaptureDevices(out VideoCaptureDevice[] lpVideoDevices)
5617 {
5618 //To speed up query we only query for a max of 25.
5619 //Hopefully no one has more than 25 capture devices.
5620 VideoCaptureDevice[] devs = new VideoCaptureDevice[25];
5621 int count = devs.Length;
5622 bool b = TTDLL.TT_GetVideoCaptureDevices(devs, ref count);
5623 if (b)
5624 {
5625 lpVideoDevices = new VideoCaptureDevice[count];
5626 for (int i = 0; i < count; i++)
5627 lpVideoDevices[i] = devs[i];
5628 }
5629 else lpVideoDevices = null;
5630
5631 return b;
5632 }
5644 public bool InitVideoCaptureDevice(string szDeviceID,
5645 VideoFormat lpVideoFormat)
5646 {
5647 return TTDLL.TT_InitVideoCaptureDevice(m_ttInst, szDeviceID, ref lpVideoFormat);
5648 }
5653 public bool CloseVideoCaptureDevice()
5654 {
5655 return TTDLL.TT_CloseVideoCaptureDevice(m_ttInst);
5656 }
5671 public bool PaintVideoFrame(int nUserID,
5672 System.IntPtr hDC,
5673 int XDest,
5674 int YDest,
5675 int nDestWidth,
5676 int nDestHeight,
5677 ref VideoFrame lpVideoFrame)
5678 {
5679 return TTDLL.TT_PaintVideoFrame(nUserID, hDC, XDest, YDest, nDestWidth,
5680 nDestHeight, ref lpVideoFrame);
5681 }
5682
5714 public bool PaintVideoFrameEx(int nUserID,
5715 System.IntPtr hDC,
5716 int XDest,
5717 int YDest,
5718 int nDestWidth,
5719 int nDestHeight,
5720 int XSrc,
5721 int YSrc,
5722 int nSrcWidth,
5723 int nSrcHeight,
5724 ref VideoFrame lpVideoFrame)
5725 {
5726 return TTDLL.TT_PaintVideoFrameEx(nUserID, hDC, XDest, YDest, nDestWidth, nDestHeight,
5727 XSrc, YSrc, nSrcWidth, nSrcHeight,
5728 ref lpVideoFrame);
5729 }
5730
5749 public VideoFrame AcquireUserVideoCaptureFrame(int nUserID, out Bitmap bmp)
5750 {
5751 bmp = null;
5752 IntPtr ptr = TTDLL.TT_AcquireUserVideoCaptureFrame(m_ttInst, nUserID);
5753 if(ptr == IntPtr.Zero)
5754 return new VideoFrame();
5755
5756 VideoFrame frm = (VideoFrame)Marshal.PtrToStructure(ptr, typeof(VideoFrame));
5757 vidcapframes.Add(frm.frameBuffer, ptr);
5758
5759 PixelFormat pixelformat = PixelFormat.Format32bppRgb;
5760 bmp = new Bitmap(frm.nWidth, frm.nHeight, frm.nWidth*4, pixelformat, frm.frameBuffer);
5761 return frm;
5762 }
5763
5764 Dictionary<IntPtr, IntPtr> vidcapframes = new Dictionary<IntPtr, IntPtr>();
5765
5773 public bool ReleaseUserVideoCaptureFrame(VideoFrame lpVideoFrame)
5774 {
5775 IntPtr ptr;
5776 if (vidcapframes.TryGetValue(lpVideoFrame.frameBuffer, out ptr))
5777 {
5778 vidcapframes.Remove(lpVideoFrame.frameBuffer);
5779 return TTDLL.TT_ReleaseUserVideoCaptureFrame(m_ttInst, ptr);
5780 }
5781 return false;
5782 }
5783
5796 /*
5797 public bool GetUserVideoFrame(int nUserID,
5798 ref System.Drawing.Bitmap lpPicture)
5799 {
5800 CaptureFormat cap;
5801 if (!TTDLL.TT_GetUserVideoFrame(m_ttInst, nUserID, IntPtr.Zero, 0, out cap))
5802 return false;
5803
5804 PixelFormat pixelformat = PixelFormat.Format32bppRgb;
5805
5806 if (lpPicture == null ||
5807 lpPicture.Width != cap.nWidth ||
5808 lpPicture.Height != cap.nHeight
5809 #if PocketPC
5810 )
5811 #else
5812 || lpPicture.PixelFormat != pixelformat)
5813 #endif
5814 {
5815 lpPicture = new Bitmap(cap.nWidth, cap.nHeight,
5816 pixelformat);
5817 }
5818
5819 // Lock the bitmap's bits.
5820 System.Drawing.Rectangle rect = new System.Drawing.Rectangle(0, 0, lpPicture.Width, lpPicture.Height);
5821 BitmapData bmpData = lpPicture.LockBits(rect, ImageLockMode.ReadWrite, pixelformat);
5822
5823 // Get the address of the first line.
5824 IntPtr ptr = bmpData.Scan0;
5825
5826 bool b = TTDLL.TT_GetUserVideoFrame(m_ttInst, nUserID, ptr,
5827 cap.nWidth * cap.nHeight * 4, out cap);
5828 // Unlock the bits.
5829 lpPicture.UnlockBits(bmpData);
5830 return b;
5831 }
5832 * */
5833
5841 public bool StartStreamingMediaFileToChannel(string szMediaFilePath,
5842 VideoCodec lpVideoCodec)
5843 {
5844 return TTDLL.TT_StartStreamingMediaFileToChannel(m_ttInst, szMediaFilePath,
5845 ref lpVideoCodec);
5846 }
5847
5877 public bool StartStreamingMediaFileToChannel(string szMediaFilePath,
5878 MediaFilePlayback lpMediaFilePlayback,
5879 VideoCodec lpVideoCodec)
5880 {
5881 return TTDLL.TT_StartStreamingMediaFileToChannelEx(m_ttInst, szMediaFilePath,
5882 ref lpMediaFilePlayback,
5883 ref lpVideoCodec);
5884 }
5885
5902 public bool UpdateStreamingMediaFileToChannel(MediaFilePlayback lpMediaFilePlayback,
5903 VideoCodec lpVideoCodec)
5904 {
5905 return TTDLL.TT_UpdateStreamingMediaFileToChannel(m_ttInst, ref lpMediaFilePlayback, ref lpVideoCodec);
5906 }
5907
5915 public bool StopStreamingMediaFileToChannel()
5916 {
5917 return TTDLL.TT_StopStreamingMediaFileToChannel(m_ttInst);
5918 }
5919
5944 public int InitLocalPlayback(string szMediaFilePath, MediaFilePlayback lpMediaFilePlayback)
5945 {
5946 return TTDLL.TT_InitLocalPlayback(m_ttInst, szMediaFilePath, ref lpMediaFilePlayback);
5947 }
5948
5960 public bool UpdateLocalPlayback(int nPlaybackSessionID,
5961 MediaFilePlayback lpMediaFilePlayback)
5962 {
5963 return TTDLL.TT_UpdateLocalPlayback(m_ttInst, nPlaybackSessionID, ref lpMediaFilePlayback);
5964 }
5965
5974 public bool StopLocalPlayback(int nPlaybackSessionID)
5975 {
5976 return TTDLL.TT_StopLocalPlayback(m_ttInst, nPlaybackSessionID);
5977 }
5978
5986 public static bool GetMediaFileInfo(string szMediaFilePath,
5987 ref MediaFileInfo lpMediaFileInfo)
5988 {
5989 return TTDLL.TT_GetMediaFileInfo(szMediaFilePath, ref lpMediaFileInfo);
5990 }
5991
6011 public VideoFrame AcquireUserMediaVideoFrame(int nUserID, out Bitmap bmp)
6012 {
6013 bmp = null;
6014 IntPtr ptr = TTDLL.TT_AcquireUserMediaVideoFrame(m_ttInst, nUserID);
6015 if (ptr == IntPtr.Zero)
6016 return new VideoFrame();
6017
6018 VideoFrame frm = (VideoFrame)Marshal.PtrToStructure(ptr, typeof(VideoFrame));
6019 mediaframes.Add(frm.frameBuffer, ptr);
6020
6021 PixelFormat pixelformat = PixelFormat.Format32bppRgb;
6022 bmp = new Bitmap(frm.nWidth, frm.nHeight, frm.nWidth * 4, pixelformat, frm.frameBuffer);
6023 return frm;
6024 }
6025
6033 public bool ReleaseUserMediaVideoFrame(VideoFrame lpVideoFrame)
6034 {
6035 IntPtr ptr;
6036 if (mediaframes.TryGetValue(lpVideoFrame.frameBuffer, out ptr))
6037 {
6038 mediaframes.Remove(lpVideoFrame.frameBuffer);
6039 return TTDLL.TT_ReleaseUserMediaVideoFrame(m_ttInst, ptr);
6040 }
6041 return false;
6042 }
6043
6044 Dictionary<IntPtr, IntPtr> mediaframes = new Dictionary<IntPtr, IntPtr>();
6045
6088 public int SendDesktopWindow(DesktopWindow lpDesktopWindow,
6089 BitmapFormat nConvertBmpFormat)
6090 {
6091 return TTDLL.TT_SendDesktopWindow(m_ttInst, ref lpDesktopWindow, nConvertBmpFormat);
6092 }
6093
6101 public bool CloseDesktopWindow()
6102 {
6103 return TTDLL.TT_CloseDesktopWindow(m_ttInst);
6104 }
6105
6122 public static System.Drawing.Color Palette_GetColorTable(BitmapFormat nBmpPalette,
6123 int nIndex)
6124 {
6125 IntPtr ptr = TTDLL.TT_Palette_GetColorTable(nBmpPalette, nIndex);
6126 switch(nBmpPalette)
6127 {
6128 case BitmapFormat.BMP_RGB8_PALETTE:
6129 return Color.FromArgb(Marshal.ReadInt32(ptr));
6130 }
6131 return new Color();
6132 }
6133
6144 public int SendDesktopWindowFromHWND(System.IntPtr hWnd,
6145 BitmapFormat nBitmapFormat,
6146 DesktopProtocol nDesktopProtocol)
6147 {
6148 return TTDLL.TT_SendDesktopWindowFromHWND(m_ttInst, hWnd, nBitmapFormat, nDesktopProtocol);
6149 }
6150
6165 public bool PaintDesktopWindow(int nUserID,
6166 System.IntPtr hDC,
6167 int XDest,
6168 int YDest,
6169 int nDestWidth,
6170 int nDestHeight)
6171 {
6172 return TTDLL.TT_PaintDesktopWindow(m_ttInst, nUserID, hDC, XDest, YDest, nDestWidth, nDestHeight);
6173 }
6174
6207 public bool PaintDesktopWindowEx(int nUserID,
6208 System.IntPtr hDC,
6209 int XDest,
6210 int YDest,
6211 int nDestWidth,
6212 int nDestHeight,
6213 int XSrc,
6214 int YSrc,
6215 int nSrcWidth,
6216 int nSrcHeight)
6217 {
6218 return TTDLL.TT_PaintDesktopWindowEx(m_ttInst, nUserID, hDC, XDest,
6219 YDest, nDestWidth, nDestHeight,
6220 XSrc, YSrc, nSrcWidth, nSrcHeight);
6221 }
6222
6235 public bool SendDesktopCursorPosition(ushort nPosX,
6236 ushort nPosY)
6237 {
6238 return TTDLL.TT_SendDesktopCursorPosition(m_ttInst, nPosX, nPosY);
6239 }
6240
6264 public bool SendDesktopInput(int nUserID,
6265 DesktopInput[] lpDesktopInputs)
6266 {
6267 return TTDLL.TT_SendDesktopInput(m_ttInst, nUserID, lpDesktopInputs, lpDesktopInputs.Length);
6268 }
6269
6293 public DesktopWindow AcquireUserDesktopWindow(int nUserID)
6294 {
6295 IntPtr ptr = TTDLL.TT_AcquireUserDesktopWindow(m_ttInst, nUserID);
6296 if (ptr == IntPtr.Zero)
6297 return new DesktopWindow();
6298 DesktopWindow lpDesktopWindow = (DesktopWindow)Marshal.PtrToStructure(ptr, typeof(DesktopWindow));
6299 desktopwindows.Add(lpDesktopWindow.frameBuffer, ptr);
6300 return lpDesktopWindow;
6301 }
6302
6309 public DesktopWindow AcquireUserDesktopWindowEx(int nUserID, BitmapFormat nBitmapFormat)
6310 {
6311 IntPtr ptr = TTDLL.TT_AcquireUserDesktopWindowEx(m_ttInst, nUserID, nBitmapFormat);
6312 if (ptr == IntPtr.Zero)
6313 return new DesktopWindow();
6314 DesktopWindow lpDesktopWindow = (DesktopWindow)Marshal.PtrToStructure(ptr, typeof(DesktopWindow));
6315 desktopwindows.Add(lpDesktopWindow.frameBuffer, ptr);
6316 return lpDesktopWindow;
6317 }
6318
6319 Dictionary<IntPtr, IntPtr> desktopwindows = new Dictionary<IntPtr, IntPtr>();
6322 public bool ReleaseUserDesktopWindow(DesktopWindow lpDesktopWindow)
6323 {
6324 IntPtr ptr;
6325 if (desktopwindows.TryGetValue(lpDesktopWindow.frameBuffer, out ptr))
6326 {
6327 desktopwindows.Remove(lpDesktopWindow.frameBuffer);
6328 return TTDLL.TT_ReleaseUserDesktopWindow(m_ttInst, ptr);
6329 }
6330 return false;
6331 }
6332
6349 public bool SetEncryptionContext(EncryptionContext lpEncryptionContext)
6350 {
6351 return TTDLL.TT_SetEncryptionContext(m_ttInst, ref lpEncryptionContext);
6352 }
6353
6382 public bool Connect(string szHostAddress,
6383 int nTcpPort,
6384 int nUdpPort,
6385 int nLocalTcpPort,
6386 int nLocalUdpPort,
6387 bool bEncrypted)
6388 {
6389 return TTDLL.TT_Connect(m_ttInst, szHostAddress, nTcpPort, nUdpPort,
6390 nLocalTcpPort, nLocalUdpPort, bEncrypted);
6391 }
6392
6416 public bool ConnectSysID(string szHostAddress,
6417 int nTcpPort,
6418 int nUdpPort,
6419 int nLocalTcpPort,
6420 int nLocalUdpPort,
6421 bool bEncrypted,
6422 string szSystemID)
6423 {
6424 return TTDLL.TT_ConnectSysID(m_ttInst, szHostAddress,
6425 nTcpPort, nUdpPort, nLocalTcpPort,
6426 nLocalUdpPort, bEncrypted, szSystemID);
6427 }
6428
6449 public bool ConnectEx(string szHostAddress,
6450 int nTcpPort,
6451 int nUdpPort,
6452 string szBindIPAddr,
6453 int nLocalTcpPort,
6454 int nLocalUdpPort,
6455 bool bEncrypted)
6456 {
6457 return TTDLL.TT_ConnectEx(m_ttInst, szHostAddress, nTcpPort, nUdpPort,
6458 szBindIPAddr, nLocalTcpPort, nLocalUdpPort,
6459 bEncrypted);
6460 }
6461
6466 public bool Disconnect()
6467 {
6468 return TTDLL.TT_Disconnect(m_ttInst);
6469 }
6479 public bool QueryMaxPayload(int nUserID)
6480 {
6481 return TTDLL.TT_QueryMaxPayload(m_ttInst, nUserID);
6482 }
6488 public bool GetClientStatistics(ref ClientStatistics lpClientStatistics)
6489 {
6490 return TTDLL.TT_GetClientStatistics(m_ttInst, ref lpClientStatistics);
6491 }
6492
6507 public bool SetClientKeepAlive(ClientKeepAlive lpClientKeepAlive)
6508 {
6509 return TTDLL.TT_SetClientKeepAlive(m_ttInst, ref lpClientKeepAlive);
6510 }
6511
6518 public bool GetClientKeepAlive(ref ClientKeepAlive lpClientKeepAlive)
6519 {
6520 return TTDLL.TT_GetClientKeepAlive(m_ttInst, ref lpClientKeepAlive);
6521 }
6544 public int DoPing()
6545 {
6546 return TTDLL.TT_DoPing(m_ttInst);
6547 }
6548
6560 public int DoLogin(string szNickname, string szUsername, string szPassword)
6561 {
6562 return TTDLL.TT_DoLogin(m_ttInst, szNickname, szUsername, szPassword);
6563 }
6564
6594 public int DoLoginEx(string szNickname, string szUsername, string szPassword,
6595 string szClientName)
6596 {
6597 return TTDLL.TT_DoLoginEx(m_ttInst, szNickname, szUsername, szPassword, szClientName);
6598 }
6612 public int DoLogout()
6613 {
6614 return TTDLL.TT_DoLogout(m_ttInst);
6615 }
6655 public int DoJoinChannel(Channel lpChannel)
6656 {
6657 return TTDLL.TT_DoJoinChannel(m_ttInst, ref lpChannel);
6658 }
6682 public int DoJoinChannelByID(int nChannelID, string szPassword)
6683 {
6684 return TTDLL.TT_DoJoinChannelByID(m_ttInst, nChannelID, szPassword);
6685 }
6705 public int DoLeaveChannel()
6706 {
6707 return TTDLL.TT_DoLeaveChannel(m_ttInst);
6708 }
6726 public int DoChangeNickname(string szNewNick)
6727 {
6728 return TTDLL.TT_DoChangeNickname(m_ttInst, szNewNick);
6729 }
6749 public int DoChangeStatus(int nStatusMode, string szStatusMessage)
6750 {
6751 return TTDLL.TT_DoChangeStatus(m_ttInst, nStatusMode, szStatusMessage);
6752 }
6771 public int DoTextMessage(TextMessage lpTextMessage)
6772 {
6773 return TTDLL.TT_DoTextMessage(m_ttInst, ref lpTextMessage);
6774 }
6795 public int DoChannelOp(int nUserID, int nChannelID, bool bMakeOperator)
6796 {
6797 return TTDLL.TT_DoChannelOp(m_ttInst, nUserID, nChannelID, bMakeOperator);
6798 }
6818 public int DoChannelOpEx(int nUserID,
6819 int nChannelID,
6820 string szOpPassword,
6821 bool bMakeOperator)
6822 {
6823 return TTDLL.TT_DoChannelOpEx(m_ttInst, nUserID, nChannelID, szOpPassword, bMakeOperator);
6824 }
6847 public int DoKickUser(int nUserID, int nChannelID)
6848 {
6849 return TTDLL.TT_DoKickUser(m_ttInst, nUserID, nChannelID);
6850 }
6885 public int DoSendFile(int nChannelID, string szLocalFilePath)
6886 {
6887 return TTDLL.TT_DoSendFile(m_ttInst, nChannelID, szLocalFilePath);
6888 }
6918 public int DoRecvFile(int nChannelID, int nFileID, string szLocalFilePath)
6919 {
6920 return TTDLL.TT_DoRecvFile(m_ttInst, nChannelID, nFileID, szLocalFilePath);
6921 }
6944 public int DoDeleteFile(int nChannelID, int nFileID)
6945 {
6946 return TTDLL.TT_DoDeleteFile(m_ttInst, nChannelID, nFileID);
6947 }
6962 public int DoSubscribe(int nUserID, Subscription uSubscriptions)
6963 {
6964 return TTDLL.TT_DoSubscribe(m_ttInst, nUserID, uSubscriptions);
6965 }
6981 public int DoUnsubscribe(int nUserID, Subscription uSubscriptions)
6982 {
6983 return TTDLL.TT_DoUnsubscribe(m_ttInst, nUserID, uSubscriptions);
6984 }
7010 public int DoMakeChannel(Channel lpChannel)
7011 {
7012 return TTDLL.TT_DoMakeChannel(m_ttInst, ref lpChannel);
7013 }
7046 public int DoUpdateChannel(Channel lpChannel)
7047 {
7048 return TTDLL.TT_DoUpdateChannel(m_ttInst, ref lpChannel);
7049 }
7068 public int DoRemoveChannel(int nChannelID)
7069 {
7070 return TTDLL.TT_DoRemoveChannel(m_ttInst, nChannelID);
7071 }
7091 public int DoMoveUser(int nUserID, int nChannelID)
7092 {
7093 return TTDLL.TT_DoMoveUser(m_ttInst, nUserID, nChannelID);
7094 }
7111 public int DoUpdateServer(ServerProperties lpServerProperties)
7112 {
7113 return TTDLL.TT_DoUpdateServer(m_ttInst, ref lpServerProperties);
7114 }
7139 public int DoListUserAccounts(int nIndex, int nCount)
7140 {
7141 return TTDLL.TT_DoListUserAccounts(m_ttInst, nIndex, nCount);
7142 }
7165 public int DoNewUserAccount(UserAccount lpUserAccount)
7166 {
7167 return TTDLL.TT_DoNewUserAccount(m_ttInst, ref lpUserAccount);
7168 }
7187 public int DoDeleteUserAccount(string szUsername)
7188 {
7189 return TTDLL.TT_DoDeleteUserAccount(m_ttInst, szUsername);
7190 }
7218 public int DoBanUser(int nUserID, int nChannelID)
7219 {
7220 return TTDLL.TT_DoBanUser(m_ttInst, nUserID, nChannelID);
7221 }
7222
7234 public int DoBanUserEx(int nUserID, BanType uBanTypes)
7235 {
7236 return TTDLL.TT_DoBanUserEx(m_ttInst, nUserID, uBanTypes);
7237 }
7238
7257 public int DoBan(BannedUser lpBannedUser)
7258 {
7259 return TTDLL.TT_DoBan(m_ttInst, ref lpBannedUser);
7260 }
7261
7282 public int DoBanIPAddress(string szIPAddress, int nChannelID)
7283 {
7284 return TTDLL.TT_DoBanIPAddress(m_ttInst, szIPAddress, nChannelID);
7285 }
7286
7307 public int DoUnBanUser(string szIPAddress, int nChannelID)
7308 {
7309 return TTDLL.TT_DoUnBanUser(m_ttInst, szIPAddress, nChannelID);
7310 }
7311
7321 public int DoUnBanUserEx(BannedUser lpBannedUser)
7322 {
7323 return TTDLL.TT_DoUnBanUserEx(m_ttInst, ref lpBannedUser);
7324 }
7325
7346 public int DoListBans(int nChannelID, int nIndex, int nCount)
7347 {
7348 return TTDLL.TT_DoListBans(m_ttInst, nChannelID, nIndex, nCount);
7349 }
7367 public int DoSaveConfig()
7368 {
7369 return TTDLL.TT_DoSaveConfig(m_ttInst);
7370 }
7387 public int DoQueryServerStats()
7388 {
7389 return TTDLL.TT_DoQueryServerStats(m_ttInst);
7390 }
7403 public int DoQuit()
7404 {
7405 return TTDLL.TT_DoQuit(m_ttInst);
7406 }
7418 public bool GetServerProperties(ref ServerProperties lpServerProperties)
7419 {
7420 return TTDLL.TT_GetServerProperties(m_ttInst, ref lpServerProperties);
7421 }
7432 public bool GetServerUsers(out User[] lpUsers)
7433 {
7434 int count = 0;
7435 bool b = TTDLL.TT_GetServerUsers_NULL(m_ttInst, IntPtr.Zero, ref count);
7436 User[] users = new User[count];
7437 b = TTDLL.TT_GetServerUsers(m_ttInst, users, ref count);
7438 lpUsers = b ? users : null;
7439 return b;
7440 }
7453 public int GetRootChannelID()
7454 {
7455 return TTDLL.TT_GetRootChannelID(m_ttInst);
7456 }
7463 public int GetMyChannelID()
7464 {
7465 return TTDLL.TT_GetMyChannelID(m_ttInst);
7466 }
7470 public int ChannelID { get { return GetMyChannelID(); } }
7478 public bool GetChannel(int nChannelID, ref Channel lpChannel)
7479 {
7480 return TTDLL.TT_GetChannel(m_ttInst, nChannelID, ref lpChannel);
7481 }
7488 public bool GetChannelPath(int nChannelID, ref string szChannelPath)
7489 {
7490 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
7491 bool b = TTDLL.TT_GetChannelPath(m_ttInst, nChannelID, ptr);
7492 if(b)
7493 szChannelPath = Marshal.PtrToStringUni(ptr);
7494 Marshal.FreeHGlobal(ptr);
7495 return b;
7496 }
7503 public int GetChannelIDFromPath(string szChannelPath)
7504 {
7505 return TTDLL.TT_GetChannelIDFromPath(m_ttInst, szChannelPath);
7506 }
7515 public bool GetChannelUsers(int nChannelID, out User[] lpUsers)
7516 {
7517 int count = 0;
7518 bool b = TTDLL.TT_GetChannelUsers_NULL(m_ttInst, nChannelID, IntPtr.Zero, ref count);
7519 User[] users = new User[count];
7520 b = TTDLL.TT_GetChannelUsers(m_ttInst, nChannelID, users, ref count);
7521 lpUsers = b ? users : null;
7522 return b;
7523 }
7532 public bool GetChannelFiles(int nChannelID, out RemoteFile[] lpRemoteFiles)
7533 {
7534 int count = 0;
7535 bool b = TTDLL.TT_GetChannelFiles_NULL(m_ttInst, nChannelID, IntPtr.Zero, ref count);
7536 RemoteFile[] files = new RemoteFile[count];
7537 b = TTDLL.TT_GetChannelFiles(m_ttInst, nChannelID, files, ref count);
7538 lpRemoteFiles = b ? files : null;
7539 return b;
7540 }
7548 public bool GetChannelFile(int nChannelID, int nFileID, ref RemoteFile lpRemoteFile)
7549 {
7550 return TTDLL.TT_GetChannelFile(m_ttInst, nChannelID, nFileID, ref lpRemoteFile);
7551 }
7558 public bool IsChannelOperator(int nUserID, int nChannelID)
7559 {
7560 return TTDLL.TT_IsChannelOperator(m_ttInst, nUserID, nChannelID);
7561 }
7568 public bool GetServerChannels(out Channel[] lpChannels)
7569 {
7570 int count = 0;
7571 bool b = TTDLL.TT_GetServerChannels_NULL(m_ttInst, IntPtr.Zero, ref count);
7572 Channel[] channels = new Channel[count];
7573 b = TTDLL.TT_GetServerChannels(m_ttInst, channels, ref count);
7574 lpChannels = b ? channels : null;
7575 return b;
7576 }
7590 public int GetMyUserID()
7591 {
7592 return TTDLL.TT_GetMyUserID(m_ttInst);
7593 }
7594
7605 public bool GetMyUserAccount(ref UserAccount lpUserAccount)
7606 {
7607 return TTDLL.TT_GetMyUserAccount(m_ttInst, ref lpUserAccount);
7608 }
7609
7613 public int UserID { get { return GetMyUserID(); } }
7614
7625 public UserType GetMyUserType()
7626 {
7627 return TTDLL.TT_GetMyUserType(m_ttInst);
7628 }
7629
7633 public BearWare.UserType UserType { get { return GetMyUserType(); } }
7634
7638 public BearWare.UserRight UserRights { get { return GetMyUserRights(); } }
7639
7641 public BearWare.UserRight GetMyUserRights()
7642 {
7643 return TTDLL.TT_GetMyUserRights(m_ttInst);
7644 }
7645
7655 public int GetMyUserData()
7656 {
7657 return TTDLL.TT_GetMyUserData(m_ttInst);
7658 }
7659
7663 public int UserData { get { return GetMyUserData(); } }
7664
7671 public bool GetUser(int nUserID, ref User lpUser)
7672 {
7673 return TTDLL.TT_GetUser(m_ttInst, nUserID, ref lpUser);
7674 }
7680 public bool GetUserStatistics(int nUserID, ref UserStatistics lpUserStatistics)
7681 {
7682 return TTDLL.TT_GetUserStatistics(m_ttInst, nUserID, ref lpUserStatistics);
7683 }
7692 public bool GetUserByUsername(string szUsername, ref User lpUser)
7693 {
7694 return TTDLL.TT_GetUserByUsername(m_ttInst, szUsername, ref lpUser);
7695 }
7712 public bool SetUserVolume(int nUserID, StreamType nStreamType, int nVolume)
7713 {
7714 return TTDLL.TT_SetUserVolume(m_ttInst, nUserID, nStreamType, nVolume);
7715 }
7727 public bool SetUserMute(int nUserID, StreamType nStreamType, bool bMute)
7728 {
7729 return TTDLL.TT_SetUserMute(m_ttInst, nUserID, nStreamType, bMute);
7730 }
7743 public bool SetUserStoppedPlaybackDelay(int nUserID,
7744 StreamType nStreamType,
7745 int nDelayMSec)
7746 {
7747 return TTDLL.TT_SetUserStoppedPlaybackDelay(m_ttInst, nUserID, nStreamType, nDelayMSec);
7748 }
7749
7774 public bool SetUserJitterControl(int nUserID,
7775 StreamType nStreamType,
7776 JitterConfig lpJitterConfig)
7777 {
7778 return TTDLL.TT_SetUserJitterControl(m_ttInst, nUserID, nStreamType, ref lpJitterConfig);
7779 }
7780
7791 public bool GetUserJitterControl(int nUserID,
7792 StreamType nStreamType,
7793 ref JitterConfig lpJitterConfig)
7794 {
7795 return TTDLL.TT_GetUserJitterControl(m_ttInst, nUserID, nStreamType, ref lpJitterConfig);
7796 }
7797
7813 public bool SetUserPosition(int nUserID, StreamType nStreamType,
7814 float x, float y, float z)
7815 {
7816 return TTDLL.TT_SetUserPosition(m_ttInst, nUserID, nStreamType, x, y, z);
7817 }
7829 public bool SetUserStereo(int nUserID, StreamType nStreamType, bool bLeftSpeaker, bool bRightSpeaker)
7830 {
7831 return TTDLL.TT_SetUserStereo(m_ttInst, nUserID, nStreamType, bLeftSpeaker, bRightSpeaker);
7832 }
7868 public bool SetUserMediaStorageDir(int nUserID, string szFolderPath, string szFileNameVars,
7869 AudioFileFormat uAFF)
7870 {
7871 return TTDLL.TT_SetUserMediaStorageDir(m_ttInst, nUserID, szFolderPath, szFileNameVars, uAFF);
7872 }
7873
7898 public bool SetUserMediaStorageDir(int nUserID, string szFolderPath, string szFileNameVars,
7899 AudioFileFormat uAFF, int nStopRecordingExtraDelayMSec)
7900 {
7901 return TTDLL.TT_SetUserMediaStorageDirEx(m_ttInst, nUserID, szFolderPath, szFileNameVars, uAFF, nStopRecordingExtraDelayMSec);
7902 }
7903
7928 public bool SetUserAudioStreamBufferSize(int nUserID, StreamType uStreamType,
7929 int nMSec)
7930 {
7931 return TTDLL.TT_SetUserAudioStreamBufferSize(m_ttInst, nUserID, uStreamType, nMSec);
7932 }
7952 public AudioBlock AcquireUserAudioBlock(StreamType uStreamTypes, int nUserID)
7953 {
7954 IntPtr ptr = TTDLL.TT_AcquireUserAudioBlock(m_ttInst, uStreamTypes, nUserID);
7955 if (ptr == IntPtr.Zero)
7956 return new AudioBlock();
7957 AudioBlock lpAudioBlock = (AudioBlock)Marshal.PtrToStructure(ptr, typeof(AudioBlock));
7958 audioblocks.Add(lpAudioBlock.lpRawAudio, ptr);
7959 return lpAudioBlock;
7960 }
7961
7962 Dictionary<IntPtr, IntPtr> audioblocks = new Dictionary<IntPtr, IntPtr>();
7963
7977 public bool ReleaseUserAudioBlock(AudioBlock lpAudioBlock)
7978 {
7979 IntPtr ptr;
7980 if (audioblocks.TryGetValue(lpAudioBlock.lpRawAudio, out ptr))
7981 {
7982 audioblocks.Remove(lpAudioBlock.lpRawAudio);
7983 return TTDLL.TT_ReleaseUserAudioBlock(m_ttInst, ptr);
7984 }
7985 return false;
7986 }
8000 public bool GetFileTransferInfo(int nTransferID, ref FileTransfer lpFileTransfer)
8001 {
8002 return TTDLL.TT_GetFileTransferInfo(m_ttInst, nTransferID, ref lpFileTransfer);
8003 }
8004
8013 public bool CancelFileTranfer(int nTransferID)
8014 {
8015 return TTDLL.TT_CancelFileTransfer(m_ttInst, nTransferID);
8016 }
8017
8028 public static string GetErrorMessage(ClientError nError)
8029 {
8030 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
8031 TTDLL.TT_GetErrorMessage((int)nError, ptr);
8032 string s = Marshal.PtrToStringUni(ptr);
8033 Marshal.FreeHGlobal(ptr);
8034 return s;
8035 }
8036
8063 public bool HotKey_Register(int nHotKeyID, int[] lpnVKCodes)
8064 {
8065 return TTDLL.TT_HotKey_Register(m_ttInst, nHotKeyID, lpnVKCodes, lpnVKCodes.Length);
8066 }
8072 public bool HotKey_Unregister(int nHotKeyID)
8073 {
8074 return TTDLL.TT_HotKey_Unregister(m_ttInst, nHotKeyID);
8075 }
8081 public int HotKey_IsActive(int nHotKeyID)
8082 {
8083 return TTDLL.TT_HotKey_IsActive(m_ttInst, nHotKeyID);
8084 }
8094 public bool HotKey_InstallTestHook()
8095 {
8096 if (m_eventhandler != null)
8097 {
8098 #if PocketPC
8099 IntPtr hWnd = m_eventhandler.Hwnd;
8100 #else
8101 IntPtr hWnd = m_eventhandler.Handle;
8102 #endif
8103 return TTDLL.TT_HotKey_InstallTestHook(m_ttInst, hWnd,
8104 MyEventHandler.WM_TEAMTALK_CLIENTEVENT);
8105 }
8106 return false;
8107 }
8113 public bool HotKey_RemoveTestHook()
8114 {
8115 return TTDLL.TT_HotKey_RemoveTestHook(m_ttInst);
8116 }
8123 public bool HotKey_GetKeyString(int nVKCode, ref string szKeyName)
8124 {
8125 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
8126 bool b = TTDLL.TT_HotKey_GetKeyString(m_ttInst, nVKCode, ptr);
8127 if(b)
8128 szKeyName = Marshal.PtrToStringUni(ptr);
8129 Marshal.FreeHGlobal(ptr);
8130 return b;
8131 }
8134 public bool DBG_SetSoundInputTone(StreamType uStreamTypes, int nFrequency)
8135 {
8136 return TTDLL.TT_DBG_SetSoundInputTone(m_ttInst, uStreamTypes, nFrequency);
8137 }
8138
8139
8140 public bool DBG_WriteAudioFileTone(MediaFileInfo lpMediaFileInfo,
8141 int nFrequency)
8142 {
8143 return TTDLL.TT_DBG_WriteAudioFileTone(ref lpMediaFileInfo, nFrequency);
8144 }
8145
8152 public delegate void Connection();
8161 public event Connection OnConnectionSuccess;
8169 public event Connection OnConnectionFailed;
8177 public event Connection OnConnectionLost;
8178
8184 public delegate void MaxPayloadUpdate(int nPayloadSize);
8185
8193 public event MaxPayloadUpdate OnConnectionMaxPayloadUpdated;
8194
8202 public delegate void CommandProcessing(int nCmdID, bool bActive);
8203
8214 public event CommandProcessing OnCmdProcessing;
8215
8220 public delegate void CommandError(int nCmdID, ClientErrorMsg clienterrormsg);
8221
8230 public event CommandError OnCmdError;
8231
8235 public delegate void CommandSuccess(int nCmdID);
8236
8244 public event CommandSuccess OnCmdSuccess;
8245
8251 public delegate void MyselfLoggedIn(int nMyUserID, UserAccount useraccount);
8252
8261 public event MyselfLoggedIn OnCmdMyselfLoggedIn;
8262
8264 public delegate void MyselfLoggedOut();
8272 public event MyselfLoggedOut OnCmdMyselfLoggedOut;
8273
8279 public delegate void MyselfKicked(User user);
8285 public event MyselfKicked OnCmdMyselfKicked;
8286
8291 public delegate void UserUpdate(User user);
8292
8296 public delegate void UserStreamUpdate(User user, int nStreamID);
8297
8305 public event UserUpdate OnCmdUserLoggedIn;
8306
8315 public event UserUpdate OnCmdUserLoggedOut;
8316
8321 public event UserUpdate OnCmdUserUpdate;
8322
8327 public event UserUpdate OnCmdUserJoinedChannel;
8328
8333 public event UserUpdate OnCmdUserLeftChannel;
8334
8340 public delegate void UserTextMessage(TextMessage textmessage);
8341
8346 public event UserTextMessage OnCmdUserTextMessage;
8347
8348
8351 public delegate void ChannelUpdate(Channel channel);
8352
8359 public event ChannelUpdate OnCmdChannelNew;
8360
8365 public event ChannelUpdate OnCmdChannelUpdate;
8366
8370 public event ChannelUpdate OnCmdChannelRemove;
8371
8373 public delegate void ServerUpdate(ServerProperties serverproperties);
8374
8380 public event ServerUpdate OnCmdServerUpdate;
8381
8383 public delegate void ServerStats(ServerStatistics serverstatistics);
8384
8389 public event ServerStats OnCmdServerStatistics;
8390
8392 public delegate void FileUpdate(RemoteFile remotefile);
8393
8398 public event FileUpdate OnCmdFileNew;
8399
8404 public event FileUpdate OnCmdFileRemove;
8405
8407 public delegate void ListUserAccount(UserAccount useraccount);
8408
8411 public event ListUserAccount OnCmdUserAccount;
8412
8414 public delegate void ListBannedUser(BannedUser banneduser);
8415
8418 public event ListBannedUser OnCmdBannedUser;
8419
8424 public event UserStreamUpdate OnUserFirstVoiceStreamPacket;
8425
8429 public event UserUpdate OnUserStateChange;
8430
8432 public delegate void UserVideoFrame(int nUserID, int nStreamID);
8433
8438 public event UserVideoFrame OnUserVideoCapture;
8439
8444 public event UserVideoFrame OnUserMediaFileVideo;
8445
8454 public delegate void NewDesktopWindow(int nUserID, int nStreamID);
8455
8464 public event NewDesktopWindow OnUserDesktopWindow;
8465
8467 public delegate void UserDesktopInput(int nSrcUserID, DesktopInput desktopinput);
8468
8474 public event UserDesktopInput OnUserDesktopCursor;
8475
8481 public event UserDesktopInput OnUserDesktopInput;
8482
8484 public delegate void UserRecordMediaFile(int nUserID, MediaFileInfo mediafileinfo);
8485
8490 public event UserRecordMediaFile OnUserRecordMediaFile;
8491
8493 public delegate void NewAudioBlock(int nUserID, StreamType nStreamType);
8494
8504 public event NewAudioBlock OnUserAudioBlock;
8505
8507 public delegate void ErrorOccured(ClientErrorMsg clienterrormsg);
8508
8513 public event ErrorOccured OnInternalError;
8514
8517 public delegate void VoiceActivation(bool bVoiceActive);
8518
8523 public event VoiceActivation OnVoiceActivation;
8524
8530 public delegate void HotKeyToggle(int nHotKeyID, bool bActive);
8531
8540 public event HotKeyToggle OnHotKeyToggle;
8541
8546 public delegate void HotKeyTest(int nVkCode, bool bActive);
8547
8564 public event HotKeyTest OnHotKeyTest;
8565
8569 public delegate void FileTransferUpdate(FileTransfer filetransfer);
8570
8582 public event FileTransferUpdate OnFileTransfer;
8583
8593 public delegate void DesktopTransferUpdate(int nSessionID, int nBytesRemain);
8594
8604 public event DesktopTransferUpdate OnDesktopWindowTransfer;
8605
8607 public delegate void StreamMediaFile(MediaFileInfo mediafileinfo);
8608
8613 public event StreamMediaFile OnStreamMediaFile;
8614
8616 public delegate void LocalMediaFile(MediaFileInfo mediafileinfo);
8617
8622 public event LocalMediaFile OnLocalMediaFile;
8623
8625 public delegate void AudioInput(AudioInputProgress aip);
8626
8631 public event AudioInput OnAudioInput;
8632
8635 //TTDLL instance
8636 private IntPtr m_ttInst;
8637 //TTDLL event handler
8638 c_tt.MyEventHandler m_eventhandler;
8639 }
8640
8649 public class TeamTalk5 : TeamTalkBase
8650 {
8651 public const int DEFAULT_TCPPORT = 10333;
8652 public const int DEFAULT_UDPPORT = 10333;
8653
8655 public TeamTalk5(bool poll_based)
8656 : base(poll_based)
8657 {
8658 }
8659 }
8660
8666 public class TeamTalk5Pro : TeamTalkBase
8667 {
8668 public const int DEFAULT_TCPPORT = 10443;
8669 public const int DEFAULT_UDPPORT = 10443;
8670
8672 public TeamTalk5Pro(bool poll_based)
8673 : base(poll_based)
8674 {
8675 }
8676 }
8685 public enum TTKeyTranslate : uint
8686 {
8688 TTKEY_NO_TRANSLATE = 0,
8692 TTKEY_WINKEYCODE_TO_TTKEYCODE = 1,
8694 TTKEY_TTKEYCODE_TO_WINKEYCODE = 2,
8698 TTKEY_MACKEYCODE_TO_TTKEYCODE = 3,
8701 TTKEY_TTKEYCODE_TO_MACKEYCODE = 4
8702 }
8703
8725 public enum MixerControl : uint
8726 {
8727 WAVEOUT_MASTER,
8728 WAVEOUT_WAVE,
8729 WAVEOUT_MICROPHONE,
8730
8731 WAVEIN_MICROPHONE,
8732 WAVEIN_LINEIN,
8733 WAVEIN_WAVEOUT,
8734 }
8735
8739 public class WindowsMixer
8740 {
8747 public static int GetMixerCount()
8748 {
8749 return TTDLL.TT_Mixer_GetMixerCount();
8750 }
8757 public static bool GetMixerName(int nMixerIndex,
8758 ref string szMixerName)
8759 {
8760 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
8761 bool b = TTDLL.TT_Mixer_GetMixerName(nMixerIndex, ptr);
8762 if(b)
8763 szMixerName = Marshal.PtrToStringUni(ptr);
8764
8765 Marshal.FreeHGlobal(ptr);
8766 return b;
8767 }
8775 public static bool GetWaveInName(int nWaveDeviceID,
8776 ref string szMixerName)
8777 {
8778 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
8779 bool b = TTDLL.TT_Mixer_GetWaveInName(nWaveDeviceID, ptr);
8780 if(b)
8781 szMixerName = Marshal.PtrToStringUni(ptr);
8782 Marshal.FreeHGlobal(ptr);
8783 return b;
8784 }
8792 public static bool GetWaveOutName(int nWaveDeviceID,
8793 ref string szMixerName)
8794 {
8795 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
8796 bool b = TTDLL.TT_Mixer_GetWaveOutName(nWaveDeviceID, ptr);
8797 if(b)
8798 szMixerName = Marshal.PtrToStringUni(ptr);
8799
8800 Marshal.FreeHGlobal(ptr);
8801 return b;
8802 }
8803
8814 public static bool SetWaveOutMute(int nWaveDeviceID, MixerControl nControl, bool bMute)
8815 {
8816 return TTDLL.TT_Mixer_SetWaveOutMute(nWaveDeviceID, nControl, bMute);
8817 }
8827 public static int GetWaveOutMute(int nWaveDeviceID, MixerControl nControl)
8828 {
8829 return TTDLL.TT_Mixer_GetWaveOutMute(nWaveDeviceID, nControl);
8830 }
8839 public static bool SetWaveOutVolume(int nWaveDeviceID, MixerControl nControl, int nVolume)
8840 {
8841 return TTDLL.TT_Mixer_SetWaveOutVolume(nWaveDeviceID, nControl, nVolume);
8842 }
8851 public static int GetWaveOutVolume(int nWaveDeviceID, MixerControl nControl)
8852 {
8853 return TTDLL.TT_Mixer_GetWaveOutVolume(nWaveDeviceID, nControl);
8854 }
8862 public static bool SetWaveInSelected(int nWaveDeviceID, MixerControl nControl)
8863 {
8864 return TTDLL.TT_Mixer_SetWaveInSelected(nWaveDeviceID, nControl);
8865 }
8874 public static int GetWaveInSelected(int nWaveDeviceID, MixerControl nControl)
8875 {
8876 return TTDLL.TT_Mixer_GetWaveInSelected(nWaveDeviceID, nControl);
8877 }
8886 public static bool SetWaveInVolume(int nWaveDeviceID, MixerControl nControl, int nVolume)
8887 {
8888 return TTDLL.TT_Mixer_SetWaveInVolume(nWaveDeviceID, nControl, nVolume);
8889 }
8898 public static int GetWaveInVolume(int nWaveDeviceID, MixerControl nControl)
8899 {
8900 return TTDLL.TT_Mixer_GetWaveInVolume(nWaveDeviceID, nControl);
8901 }
8908 public static bool SetWaveInBoost(int nWaveDeviceID, bool bEnable)
8909 {
8910 return TTDLL.TT_Mixer_SetWaveInBoost(nWaveDeviceID, bEnable);
8911 }
8918 public static int GetWaveInBoost(int nWaveDeviceID)
8919 {
8920 return TTDLL.TT_Mixer_GetWaveInBoost(nWaveDeviceID);
8921 }
8928 public static bool SetWaveInMute(int nWaveDeviceID, bool bEnable)
8929 {
8930 return TTDLL.TT_Mixer_SetWaveInMute(nWaveDeviceID, bEnable);
8931 }
8938 public static int GetWaveInMute(int nWaveDeviceID)
8939 {
8940 return TTDLL.TT_Mixer_GetWaveInMute(nWaveDeviceID);
8941 }
8950 public static int GetWaveInControlCount(int nWaveDeviceID)
8951 {
8952 return TTDLL.TT_Mixer_GetWaveInControlCount(nWaveDeviceID);
8953 }
8964 public static bool GetWaveInControlName(int nWaveDeviceID, int nControlIndex,
8965 ref string szDeviceName)
8966 {
8967 IntPtr ptr = Marshal.AllocHGlobal(TeamTalkBase.TT_STRLEN * 2);
8968 bool b = TTDLL.TT_Mixer_GetWaveInControlName(nWaveDeviceID, nControlIndex, ptr);
8969 if(b)
8970 szDeviceName = Marshal.PtrToStringUni(ptr);
8971 Marshal.FreeHGlobal(ptr);
8972 return b;
8973 }
8983 public static bool SetWaveInControlSelected(int nWaveDeviceID, int nControlIndex)
8984 {
8985 return TTDLL.TT_Mixer_SetWaveInControlSelected(nWaveDeviceID, nControlIndex);
8986 }
8996 public static bool GetWaveInControlSelected(int nWaveDeviceID, int nControlIndex)
8997 {
8998 return TTDLL.TT_Mixer_GetWaveInControlSelected(nWaveDeviceID, nControlIndex);
8999 }
9000 }
9009 public class WindowsFirewall
9010 {
9016 public static bool IsEnabled()
9017 {
9018 return TTDLL.TT_Firewall_IsEnabled();
9019 }
9029 public static bool Enable(bool bEnable)
9030 {
9031 return TTDLL.TT_Firewall_Enable(bEnable);
9032 }
9039 public static bool AppExceptionExists(string szExecutable)
9040 {
9041 return TTDLL.TT_Firewall_AppExceptionExists(szExecutable);
9042 }
9052 public static bool AddAppException(string szName, string szExecutable)
9053 {
9054 return TTDLL.TT_Firewall_AddAppException(szName, szExecutable);
9055 }
9065 public static bool RemoveAppException(string szExecutable)
9066 {
9067 return TTDLL.TT_Firewall_RemoveAppException(szExecutable);
9068 }
9069 }
9075 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
9076 public struct ShareWindow
9077 {
9079 public IntPtr hWnd;
9081 public int nWndX;
9083 public int nWndY;
9085 public int nWidth;
9087 public int nHeight;
9089 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = TeamTalkBase.TT_STRLEN)]
9090 public string szWindowTitle;
9091 }
9092
9096 public class WindowsHelper
9097 {
9100 public static System.IntPtr GetDesktopActiveHWND()
9101 {
9102 return TTDLL.TT_Windows_GetDesktopActiveHWND();
9103 }
9104
9106 public static System.IntPtr GetDesktopHWND()
9107 {
9108 return TTDLL.TT_Windows_GetDesktopHWND();
9109 }
9110
9112 public static bool GetDesktopWindowHWND(int nIndex,
9113 ref System.IntPtr lpHWnd)
9114 {
9115 return TTDLL.TT_Windows_GetDesktopWindowHWND(nIndex, ref lpHWnd);
9116 }
9117
9120 public static bool GetWindow(System.IntPtr hWnd,
9121 ref ShareWindow lpShareWindow)
9122 {
9123 return TTDLL.TT_Windows_GetWindow(hWnd, ref lpShareWindow);
9124 }
9125
9145 public static int DesktopInputKeyTranslate(TTKeyTranslate nTranslate,
9146 DesktopInput[] lpDesktopInputs,
9147 out DesktopInput[] lpTranslatedDesktopInputs)
9148 {
9149 lpTranslatedDesktopInputs = new DesktopInput[lpDesktopInputs.Length];
9150 return TTDLL.TT_DesktopInput_KeyTranslate(nTranslate, lpDesktopInputs,
9151 lpTranslatedDesktopInputs,
9152 lpDesktopInputs.Length);
9153 }
9154
9175 public static int DesktopInputExecute(DesktopInput[] lpDesktopInputs)
9176 {
9177 return TTDLL.TT_DesktopInput_Execute(lpDesktopInputs, lpDesktopInputs.Length);
9178 }
9179
9180 }
9181 }
BearWare.TeamTalk5
Class used to load TeamTalk5.dll and instantiate a TeamTalk client in TeamTalk 5 SDK Standard Edition...
Definition: TeamTalk.cs:8650
BearWare.TeamTalk5.TeamTalk5
TeamTalk5(bool poll_based)
Simply calls TeamTalkBase.TeamTalkBase()
Definition: TeamTalk.cs:8655
BearWare.TeamTalk5.DEFAULT_TCPPORT
const int DEFAULT_TCPPORT
Definition: TeamTalk.cs:8651
BearWare.TeamTalk5.DEFAULT_UDPPORT
const int DEFAULT_UDPPORT
Definition: TeamTalk.cs:8652
BearWare.TeamTalk5Pro
Class used to load TeamTalk5Pro.dll and instantiate a TeamTalk client in TeamTalk 5 SDK Professional ...
Definition: TeamTalk.cs:8667
BearWare.TeamTalk5Pro.DEFAULT_UDPPORT
const int DEFAULT_UDPPORT
Definition: TeamTalk.cs:8669
BearWare.TeamTalk5Pro.DEFAULT_TCPPORT
const int DEFAULT_TCPPORT
Definition: TeamTalk.cs:8668
BearWare.TeamTalk5Pro.TeamTalk5Pro
TeamTalk5Pro(bool poll_based)
Simply calls TeamTalkBase.TeamTalkBase()
Definition: TeamTalk.cs:8672
BearWare.TeamTalkBase
Abstract class which encapsulates the TeamTalk 5 client. Instantiate either BearWare....
Definition: TeamTalk.cs:4090
BearWare.TeamTalkBase.DBG_WriteAudioFileTone
bool DBG_WriteAudioFileTone(MediaFileInfo lpMediaFileInfo, int nFrequency)
Definition: TeamTalk.cs:8140
BearWare.TeamTalkBase.DBG_SetSoundInputTone
bool DBG_SetSoundInputTone(StreamType uStreamTypes, int nFrequency)
Definition: TeamTalk.cs:8134
BearWare.WindowsFirewall
A wrapper for the Windows Firewall API.
Definition: TeamTalk.cs:9010
BearWare.WindowsFirewall.Enable
static bool Enable(bool bEnable)
Enable/disable the Windows Firewall.
Definition: TeamTalk.cs:9029
BearWare.WindowsFirewall.RemoveAppException
static bool RemoveAppException(string szExecutable)
Remove an application from the Windows Firewall exception list.
Definition: TeamTalk.cs:9065
BearWare.WindowsFirewall.IsEnabled
static bool IsEnabled()
Check if the Windows Firewall is currently enabled.
Definition: TeamTalk.cs:9016
BearWare.WindowsFirewall.AddAppException
static bool AddAppException(string szName, string szExecutable)
Add an application to the Windows Firewall exception list.
Definition: TeamTalk.cs:9052
BearWare.WindowsFirewall.AppExceptionExists
static bool AppExceptionExists(string szExecutable)
Check if an executable is already in the Windows Firewall exception list.
Definition: TeamTalk.cs:9039
BearWare.WindowsHelper
Helper class for extracting Windows HWND handles and controlling mouse and keyboard.
Definition: TeamTalk.cs:9097
BearWare.WindowsHelper.GetWindow
static bool GetWindow(System.IntPtr hWnd, ref ShareWindow lpShareWindow)
Get the properties of a window from its window handle (HWND).
Definition: TeamTalk.cs:9120
BearWare.WindowsHelper.GetDesktopWindowHWND
static bool GetDesktopWindowHWND(int nIndex, ref System.IntPtr lpHWnd)
Get the all the handles (HWND) of visible windows.
Definition: TeamTalk.cs:9112
BearWare.WindowsHelper.GetDesktopActiveHWND
static System.IntPtr GetDesktopActiveHWND()
Get the handle (HWND) of the window which is currently active (focused) on the Windows desktop.
Definition: TeamTalk.cs:9100
BearWare.WindowsHelper.DesktopInputKeyTranslate
static int DesktopInputKeyTranslate(TTKeyTranslate nTranslate, DesktopInput[] lpDesktopInputs, out DesktopInput[] lpTranslatedDesktopInputs)
Translate platform key-code to and from TeamTalk's intermediate format.
Definition: TeamTalk.cs:9145
BearWare.WindowsHelper.DesktopInputExecute
static int DesktopInputExecute(DesktopInput[] lpDesktopInputs)
Execute desktop (mouse or keyboard) input.
Definition: TeamTalk.cs:9175
BearWare.WindowsHelper.GetDesktopHWND
static System.IntPtr GetDesktopHWND()
Get the handle (HWND) of the Windows desktop (full desktop).
Definition: TeamTalk.cs:9106
BearWare.WindowsMixer
A wrapper for the Windows Mixer API.
Definition: TeamTalk.cs:8740
BearWare.WindowsMixer.SetWaveOutVolume
static bool SetWaveOutVolume(int nWaveDeviceID, MixerControl nControl, int nVolume)
Set the volume of a Windows Mixer Wave-Out device from the 'enum' of devices.
Definition: TeamTalk.cs:8839
BearWare.WindowsMixer.GetWaveInVolume
static int GetWaveInVolume(int nWaveDeviceID, MixerControl nControl)
Get the volume of a Windows Mixer Wave-In device from the 'enum' of devices.
Definition: TeamTalk.cs:8898
BearWare.WindowsMixer.SetWaveOutMute
static bool SetWaveOutMute(int nWaveDeviceID, MixerControl nControl, bool bMute)
Mute or unmute a Windows Mixer Wave-Out device from the 'enum' of devices.
Definition: TeamTalk.cs:8814
BearWare.WindowsMixer.GetWaveOutName
static bool GetWaveOutName(int nWaveDeviceID, ref string szMixerName)
Get the name of the mixer associated with a wave-out device.
Definition: TeamTalk.cs:8792
BearWare.WindowsMixer.SetWaveInControlSelected
static bool SetWaveInControlSelected(int nWaveDeviceID, int nControlIndex)
Set the selected state of a Wave-In device in the Windows Mixer.
Definition: TeamTalk.cs:8983
BearWare.WindowsMixer.SetWaveInBoost
static bool SetWaveInBoost(int nWaveDeviceID, bool bEnable)
Enable and disable microphone boost.
Definition: TeamTalk.cs:8908
BearWare.WindowsMixer.GetWaveInControlSelected
static bool GetWaveInControlSelected(int nWaveDeviceID, int nControlIndex)
Get the selected state of a Wave-In device in the Windows Mixer.
Definition: TeamTalk.cs:8996
BearWare.WindowsMixer.GetWaveInName
static bool GetWaveInName(int nWaveDeviceID, ref string szMixerName)
Get the name of the mixer associated with a wave-in device.
Definition: TeamTalk.cs:8775
BearWare.WindowsMixer.SetWaveInSelected
static bool SetWaveInSelected(int nWaveDeviceID, MixerControl nControl)
Set the selected state of a Windows Mixer Wave-In device from the 'enum' of devices.
Definition: TeamTalk.cs:8862
BearWare.WindowsMixer.GetWaveInBoost
static int GetWaveInBoost(int nWaveDeviceID)
See if microphone boost is enabled.
Definition: TeamTalk.cs:8918
BearWare.WindowsMixer.SetWaveInMute
static bool SetWaveInMute(int nWaveDeviceID, bool bEnable)
Mute/unmute microphone input.
Definition: TeamTalk.cs:8928
BearWare.WindowsMixer.GetMixerCount
static int GetMixerCount()
Get the number of Windows Mixers available.
Definition: TeamTalk.cs:8747
BearWare.WindowsMixer.GetWaveOutVolume
static int GetWaveOutVolume(int nWaveDeviceID, MixerControl nControl)
Get the volume of a Windows Mixer Wave-Out device from the 'enum' of devices.
Definition: TeamTalk.cs:8851
BearWare.WindowsMixer.SetWaveInVolume
static bool SetWaveInVolume(int nWaveDeviceID, MixerControl nControl, int nVolume)
Set the volume of a Windows Mixer Wave-In device from the 'enum' of devices.
Definition: TeamTalk.cs:8886
BearWare.WindowsMixer.GetWaveInSelected
static int GetWaveInSelected(int nWaveDeviceID, MixerControl nControl)
Get the selected state of a Windows Mixer Wave-In device from the 'enum' of devices.
Definition: TeamTalk.cs:8874
BearWare.WindowsMixer.GetWaveInMute
static int GetWaveInMute(int nWaveDeviceID)
See if microphone is muted.
Definition: TeamTalk.cs:8938
BearWare.WindowsMixer.GetWaveInControlCount
static int GetWaveInControlCount(int nWaveDeviceID)
Get the number of Windows Mixer Wave-In devices.
Definition: TeamTalk.cs:8950
BearWare.WindowsMixer.GetWaveOutMute
static int GetWaveOutMute(int nWaveDeviceID, MixerControl nControl)
Get the mute state of a Windows Mixer Wave-Out device from the 'enum' of devices.
Definition: TeamTalk.cs:8827
BearWare.WindowsMixer.GetWaveInControlName
static bool GetWaveInControlName(int nWaveDeviceID, int nControlIndex, ref string szDeviceName)
Get the name of the Wave-In device with the specified index.
Definition: TeamTalk.cs:8964
BearWare.WindowsMixer.GetMixerName
static bool GetMixerName(int nMixerIndex, ref string szMixerName)
Get the name of a Windows Mixer based on its name.
Definition: TeamTalk.cs:8757
BearWare.TeamTalkBase.GetRootChannelID
int GetRootChannelID()
Get the root channel's ID.
Definition: TeamTalk.cs:7453
BearWare.TeamTalkBase.TT_TRANSMITUSERS_STREAMTYPE_INDEX
const int TT_TRANSMITUSERS_STREAMTYPE_INDEX
Definition: TeamTalk.cs:4147
BearWare.FileTransferStatus
FileTransferStatus
Status of a file transfer.
Definition: TeamTalk.cs:2681
BearWare.TeamTalkBase.GetChannelFile
bool GetChannelFile(int nChannelID, int nFileID, ref RemoteFile lpRemoteFile)
Get information about a file which can be downloaded.
Definition: TeamTalk.cs:7548
BearWare.TeamTalkBase.TT_TRANSMITQUEUE_MAX
const int TT_TRANSMITQUEUE_MAX
Definition: TeamTalk.cs:4191
BearWare.TeamTalkBase.ChannelID
int ChannelID
Same as GetMyChannelID().
Definition: TeamTalk.cs:7470
BearWare.TeamTalkBase.TT_CLASSROOM_STREAMTYPE_INDEX
const int TT_CLASSROOM_STREAMTYPE_INDEX
Definition: TeamTalk.cs:4135
BearWare.TeamTalkBase.TT_CLASSROOM_FREEFORALL
const int TT_CLASSROOM_FREEFORALL
Definition: TeamTalk.cs:4127
BearWare.TeamTalkBase.GetChannelIDFromPath
int GetChannelIDFromPath(string szChannelPath)
Get the channel ID of the supplied path. Channels are separated by '/'.
Definition: TeamTalk.cs:7503
BearWare.TeamTalkBase.TT_TRANSMITUSERS_USERID_INDEX
const int TT_TRANSMITUSERS_USERID_INDEX
Definition: TeamTalk.cs:4143
BearWare.ChannelType
ChannelType
The types of channels supported.
Definition: TeamTalk.cs:2461
BearWare.TeamTalkBase.IsChannelOperator
bool IsChannelOperator(int nUserID, int nChannelID)
Check whether user is operator of a channel.
Definition: TeamTalk.cs:7558
BearWare.TeamTalkBase.GetMyChannelID
int GetMyChannelID()
Get the channel which the local client instance is currently participating in.
Definition: TeamTalk.cs:7463
BearWare.TeamTalkBase.GetServerChannels
bool GetServerChannels(out Channel[] lpChannels)
Get all the channels on the server.
Definition: TeamTalk.cs:7568
BearWare.TeamTalkBase.GetChannelUsers
bool GetChannelUsers(int nChannelID, out User[] lpUsers)
Get the IDs of all users in a channel.
Definition: TeamTalk.cs:7515
BearWare.TeamTalkBase.GetChannel
bool GetChannel(int nChannelID, ref Channel lpChannel)
Get the channel with a specific ID.
Definition: TeamTalk.cs:7478
BearWare.TeamTalkBase.TT_CLASSROOM_USERID_INDEX
const int TT_CLASSROOM_USERID_INDEX
Definition: TeamTalk.cs:4131
BearWare.TeamTalkBase.TT_TRANSMITUSERS_FREEFORALL
const int TT_TRANSMITUSERS_FREEFORALL
Definition: TeamTalk.cs:4139
BearWare.TeamTalkBase.GetChannelPath
bool GetChannelPath(int nChannelID, ref string szChannelPath)
Get the channel's path. Channels are separated by '/'.
Definition: TeamTalk.cs:7488
BearWare.TeamTalkBase.GetChannelFiles
bool GetChannelFiles(int nChannelID, out RemoteFile[] lpRemoteFiles)
Get the list of the files in a channel which can be downloaded.
Definition: TeamTalk.cs:7532
BearWare.TeamTalkBase.TT_TRANSMITUSERS_MAX
const int TT_TRANSMITUSERS_MAX
The maximum number of users allowed to transmit when a BearWare.Channel is configured with ChannelTyp...
Definition: TeamTalk.cs:4118
BearWare.TeamTalkBase.CancelFileTranfer
bool CancelFileTranfer(int nTransferID)
Cancel an active file transfer.
Definition: TeamTalk.cs:8013
BearWare.TeamTalkBase.GetFileTransferInfo
bool GetFileTransferInfo(int nTransferID, ref FileTransfer lpFileTransfer)
Get information about an active file transfer.
Definition: TeamTalk.cs:8000
BearWare.FileTransferStatus.FILETRANSFER_CLOSED
@ FILETRANSFER_CLOSED
BearWare.FileTransferStatus.FILETRANSFER_ACTIVE
@ FILETRANSFER_ACTIVE
File transfer active.
BearWare.FileTransferStatus.FILETRANSFER_FINISHED
@ FILETRANSFER_FINISHED
File transfer finished.
BearWare.FileTransferStatus.FILETRANSFER_ERROR
@ FILETRANSFER_ERROR
Error during file transfer.
BearWare.ChannelType.CHANNEL_NO_VOICEACTIVATION
@ CHANNEL_NO_VOICEACTIVATION
Don't allow voice transmission if it's trigged by voice activation.
BearWare.ChannelType.CHANNEL_PERMANENT
@ CHANNEL_PERMANENT
A channel which persists even when the last user leaves the channel.
BearWare.ChannelType.CHANNEL_OPERATOR_RECVONLY
@ CHANNEL_OPERATOR_RECVONLY
Only channel operators (and administrators) will receive audio/video/desktop transmissions....
BearWare.ChannelType.CHANNEL_DEFAULT
@ CHANNEL_DEFAULT
A default channel is a channel which disappears after the last user leaves the channel.
BearWare.ChannelType.CHANNEL_CLASSROOM
@ CHANNEL_CLASSROOM
Voice and video transmission in the channel is controlled by a channel operator.
BearWare.ChannelType.CHANNEL_NO_RECORDING
@ CHANNEL_NO_RECORDING
Don't allow recording to files in the channel.
BearWare.ChannelType.CHANNEL_SOLO_TRANSMIT
@ CHANNEL_SOLO_TRANSMIT
Only one user can transmit at a time.
BearWare.ChannelType.CHANNEL_HIDDEN
@ CHANNEL_HIDDEN
Hidden channel which can only be seen with UserRight.USERRIGHT_VIEW_HIDDEN_CHANNELS.
BearWare.Codec
Codec
The codecs supported.
Definition: TeamTalk.cs:1546
BearWare.AudioPreprocessorType
AudioPreprocessorType
The types of supported audio preprocessors.
Definition: TeamTalk.cs:1454
BearWare.Codec.WEBM_VP8_CODEC
@ WEBM_VP8_CODEC
WebM video codec.
BearWare.Codec.SPEEX_VBR_CODEC
@ SPEEX_VBR_CODEC
Speex audio codec in VBR mode, http://www.speex.org.
BearWare.Codec.NO_CODEC
@ NO_CODEC
No codec specified.
BearWare.Codec.SPEEX_CODEC
@ SPEEX_CODEC
Speex audio codec, http://www.speex.org.
BearWare.Codec.OPUS_CODEC
@ OPUS_CODEC
OPUS audio codec.
BearWare.AudioPreprocessorType.SPEEXDSP_AUDIOPREPROCESSOR
@ SPEEXDSP_AUDIOPREPROCESSOR
Use the BearWare.SpeexDSP audio preprocessor.
BearWare.AudioPreprocessorType.WEBRTC_AUDIOPREPROCESSOR
@ WEBRTC_AUDIOPREPROCESSOR
Use WebRTC's audio preprocessor from BearWare.WebRTCAudioPreprocessor. https://webrtc....
BearWare.AudioPreprocessorType.TEAMTALK_AUDIOPREPROCESSOR
@ TEAMTALK_AUDIOPREPROCESSOR
Use TeamTalk's internal audio preprocessor BearWare.TTAudioPreprocessor.
BearWare.AudioPreprocessorType.NO_AUDIOPREPROCESSOR
@ NO_AUDIOPREPROCESSOR
Value for specifying that no audio preprocessing should occur.
BearWare.TeamTalkBase.DoRecvFile
int DoRecvFile(int nChannelID, int nFileID, string szLocalFilePath)
Download a file from the specified channel.
Definition: TeamTalk.cs:6918
BearWare.TeamTalkBase.DoPing
int DoPing()
Ping server and wait for server to reply.
Definition: TeamTalk.cs:6544
BearWare.TeamTalkBase.DoJoinChannel
int DoJoinChannel(Channel lpChannel)
Create a new channel and join it.
Definition: TeamTalk.cs:6655
BearWare.TeamTalkBase.DoListBans
int DoListBans(int nChannelID, int nIndex, int nCount)
Issue a command to list the banned users.
Definition: TeamTalk.cs:7346
BearWare.TeamTalkBase.DoUnBanUser
int DoUnBanUser(string szIPAddress, int nChannelID)
Unban the user with the specified IP-address.
Definition: TeamTalk.cs:7307
BearWare.TeamTalkBase.DoMoveUser
int DoMoveUser(int nUserID, int nChannelID)
Issue command to move a user from one channel to another.
Definition: TeamTalk.cs:7091
BearWare.TeamTalkBase.DoBanUser
int DoBanUser(int nUserID, int nChannelID)
Issue a ban command on a user in a specific channel.
Definition: TeamTalk.cs:7218
BearWare.TeamTalkBase.DoChannelOpEx
int DoChannelOpEx(int nUserID, int nChannelID, string szOpPassword, bool bMakeOperator)
Make another user operator of a channel using the szOpPassword of BearWare.Channel.
Definition: TeamTalk.cs:6818
BearWare.TeamTalkBase.DoBanUserEx
int DoBanUserEx(int nUserID, BanType uBanTypes)
Ban the user with nUserID using the ban types specified.
Definition: TeamTalk.cs:7234
BearWare.TeamTalkBase.DoChangeStatus
int DoChangeStatus(int nStatusMode, string szStatusMessage)
Change the client instance's currect status.
Definition: TeamTalk.cs:6749
BearWare.TeamTalkBase.DoSendFile
int DoSendFile(int nChannelID, string szLocalFilePath)
Send a file to the specified channel.
Definition: TeamTalk.cs:6885
BearWare.TeamTalkBase.DoLogin
int DoLogin(string szNickname, string szUsername, string szPassword)
Same as DologinEx() but without the option to specify szClientName. Kept for backwards compatibility.
Definition: TeamTalk.cs:6560
BearWare.TeamTalkBase.DoChannelOp
int DoChannelOp(int nUserID, int nChannelID, bool bMakeOperator)
Make another user operator of a channel.
Definition: TeamTalk.cs:6795
BearWare.TeamTalkBase.DoDeleteUserAccount
int DoDeleteUserAccount(string szUsername)
Issue command to delete a user account on the server.
Definition: TeamTalk.cs:7187
BearWare.TeamTalkBase.DoUnsubscribe
int DoUnsubscribe(int nUserID, Subscription uSubscriptions)
Unsubscribe to user events/data. This can be used to ignore messages or voice data from a specific us...
Definition: TeamTalk.cs:6981
BearWare.TeamTalkBase.DoQueryServerStats
int DoQueryServerStats()
Get the server's current statistics.
Definition: TeamTalk.cs:7387
BearWare.TeamTalkBase.DoMakeChannel
int DoMakeChannel(Channel lpChannel)
Make a new channel on the server.
Definition: TeamTalk.cs:7010
BearWare.TeamTalkBase.DoKickUser
int DoKickUser(int nUserID, int nChannelID)
Kick user from either channel or server.
Definition: TeamTalk.cs:6847
BearWare.TeamTalkBase.DoSaveConfig
int DoSaveConfig()
Save the server's current state to its settings file (typically the server's .xml file).
Definition: TeamTalk.cs:7367
BearWare.TeamTalkBase.DoDeleteFile
int DoDeleteFile(int nChannelID, int nFileID)
Delete a file from a channel.
Definition: TeamTalk.cs:6944
BearWare.TeamTalkBase.DoQuit
int DoQuit()
Quit from server.
Definition: TeamTalk.cs:7403
BearWare.TeamTalkBase.DoUpdateChannel
int DoUpdateChannel(Channel lpChannel)
Update a channel's properties.
Definition: TeamTalk.cs:7046
BearWare.TeamTalkBase.DoLeaveChannel
int DoLeaveChannel()
Leave the current channel.
Definition: TeamTalk.cs:6705
BearWare.TeamTalkBase.DoUnBanUserEx
int DoUnBanUserEx(BannedUser lpBannedUser)
Unban the properties specified in BearWare.BannedUser.
Definition: TeamTalk.cs:7321
BearWare.TeamTalkBase.DoNewUserAccount
int DoNewUserAccount(UserAccount lpUserAccount)
Issue command to create a new user account on the server.
Definition: TeamTalk.cs:7165
BearWare.TeamTalkBase.DoSubscribe
int DoSubscribe(int nUserID, Subscription uSubscriptions)
Subscribe to user events and/or data.
Definition: TeamTalk.cs:6962
BearWare.TeamTalkBase.DoBanIPAddress
int DoBanIPAddress(string szIPAddress, int nChannelID)
Issue a ban command on an IP-address user.
Definition: TeamTalk.cs:7282
BearWare.TeamTalkBase.DoLoginEx
int DoLoginEx(string szNickname, string szUsername, string szPassword, string szClientName)
Logon to a server.
Definition: TeamTalk.cs:6594
BearWare.TeamTalkBase.DoBan
int DoBan(BannedUser lpBannedUser)
Ban the properties specified in lpBannedUser.
Definition: TeamTalk.cs:7257
BearWare.TeamTalkBase.DoJoinChannelByID
int DoJoinChannelByID(int nChannelID, string szPassword)
Join an existing channel.
Definition: TeamTalk.cs:6682
BearWare.TeamTalkBase.DoLogout
int DoLogout()
Logout of the server.
Definition: TeamTalk.cs:6612
BearWare.TeamTalkBase.DoChangeNickname
int DoChangeNickname(string szNewNick)
Change the client instance's nick name.
Definition: TeamTalk.cs:6726
BearWare.TeamTalkBase.DoListUserAccounts
int DoListUserAccounts(int nIndex, int nCount)
Issue command to list user accounts on the server.
Definition: TeamTalk.cs:7139
BearWare.TeamTalkBase.DoUpdateServer
int DoUpdateServer(ServerProperties lpServerProperties)
Update server properties.
Definition: TeamTalk.cs:7111
BearWare.TeamTalkBase.DoRemoveChannel
int DoRemoveChannel(int nChannelID)
Remove a channel from a server.
Definition: TeamTalk.cs:7068
BearWare.TeamTalkBase.DoTextMessage
int DoTextMessage(TextMessage lpTextMessage)
Send a text message to either a user or a channel.
Definition: TeamTalk.cs:6771
BearWare.TeamTalkBase.Connect
bool Connect(string szHostAddress, int nTcpPort, int nUdpPort, int nLocalTcpPort, int nLocalUdpPort, bool bEncrypted)
Connect to a server.
Definition: TeamTalk.cs:6382
BearWare.TeamTalkBase.SetClientKeepAlive
bool SetClientKeepAlive(ClientKeepAlive lpClientKeepAlive)
Update the client instance's default keep alive settings.
Definition: TeamTalk.cs:6507
BearWare.TeamTalkBase.ConnectSysID
bool ConnectSysID(string szHostAddress, int nTcpPort, int nUdpPort, int nLocalTcpPort, int nLocalUdpPort, bool bEncrypted, string szSystemID)
Same as Connect() but the option of providing a unique system-ID.
Definition: TeamTalk.cs:6416
BearWare.TeamTalkBase.GetClientStatistics
bool GetClientStatistics(ref ClientStatistics lpClientStatistics)
Retrieve client statistics of bandwidth usage and response times.
Definition: TeamTalk.cs:6488
BearWare.TeamTalkBase.QueryMaxPayload
bool QueryMaxPayload(int nUserID)
Query the maximum size of UDP data packets to the user or server.
Definition: TeamTalk.cs:6479
BearWare.TeamTalkBase.ConnectEx
bool ConnectEx(string szHostAddress, int nTcpPort, int nUdpPort, string szBindIPAddr, int nLocalTcpPort, int nLocalUdpPort, bool bEncrypted)
Bind to specific IP-address prior to connecting to server.
Definition: TeamTalk.cs:6449
BearWare.TeamTalkBase.SetEncryptionContext
bool SetEncryptionContext(EncryptionContext lpEncryptionContext)
Setup encryption properties prior to Connect().
Definition: TeamTalk.cs:6349
BearWare.TeamTalkBase.Disconnect
bool Disconnect()
Disconnect from the server.
Definition: TeamTalk.cs:6466
BearWare.TeamTalkBase.GetClientKeepAlive
bool GetClientKeepAlive(ref ClientKeepAlive lpClientKeepAlive)
Get the client instance's current keep alive settings.
Definition: TeamTalk.cs:6518
BearWare.DesktopInputConstants.DESKTOPINPUT_MOUSEPOS_IGNORE
const ushort DESKTOPINPUT_MOUSEPOS_IGNORE
Definition: TeamTalk.cs:866
BearWare.TeamTalkBase.AcquireUserDesktopWindowEx
DesktopWindow AcquireUserDesktopWindowEx(int nUserID, BitmapFormat nBitmapFormat)
Same as TeamTalkBase.AcquireUserDesktopWindow() except an extra option for converting bitmap to a dif...
Definition: TeamTalk.cs:6309
BearWare.TeamTalkBase.SendDesktopWindow
int SendDesktopWindow(DesktopWindow lpDesktopWindow, BitmapFormat nConvertBmpFormat)
Transmit a desktop window (bitmap) to users in the same channel.
Definition: TeamTalk.cs:6088
BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_IGNORE
const uint DESKTOPINPUT_KEYCODE_IGNORE
Definition: TeamTalk.cs:857
BearWare.TTKeyTranslate
TTKeyTranslate
Translate to and from TeamTalk's intermediate key-codes (TTKEYCODE).
Definition: TeamTalk.cs:8686
BearWare.DesktopKeyState
DesktopKeyState
The state of a key (or mouse button), i.e. if it's pressed or released.
Definition: TeamTalk.cs:793
BearWare.TeamTalkBase.AcquireUserDesktopWindow
DesktopWindow AcquireUserDesktopWindow(int nUserID)
Get a user's desktop window (bitmap image).
Definition: TeamTalk.cs:6293
BearWare.TeamTalkBase.PaintDesktopWindow
bool PaintDesktopWindow(int nUserID, System.IntPtr hDC, int XDest, int YDest, int nDestWidth, int nDestHeight)
Paint user's desktop window using a Windows' DC (device context).
Definition: TeamTalk.cs:6165
BearWare.TeamTalkBase.SendDesktopWindowFromHWND
int SendDesktopWindowFromHWND(System.IntPtr hWnd, BitmapFormat nBitmapFormat, DesktopProtocol nDesktopProtocol)
Transmit the specified window in a desktop session.
Definition: TeamTalk.cs:6144
BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_LMOUSEBTN
const uint DESKTOPINPUT_KEYCODE_LMOUSEBTN
Definition: TeamTalk.cs:874
BearWare.DesktopProtocol
DesktopProtocol
The protocols supported for transferring a BearWare.DesktopWindow.
Definition: TeamTalk.cs:749
BearWare.TeamTalkBase.PaintDesktopWindowEx
bool PaintDesktopWindowEx(int nUserID, System.IntPtr hDC, int XDest, int YDest, int nDestWidth, int nDestHeight, int XSrc, int YSrc, int nSrcWidth, int nSrcHeight)
Paint user's desktop window using a Windows' DC (device context).
Definition: TeamTalk.cs:6207
BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_RMOUSEBTN
const uint DESKTOPINPUT_KEYCODE_RMOUSEBTN
Definition: TeamTalk.cs:882
BearWare.TeamTalkBase.CloseDesktopWindow
bool CloseDesktopWindow()
Close the current desktop session.
Definition: TeamTalk.cs:6101
BearWare.TeamTalkBase.TT_DESKTOPINPUT_MAX
const int TT_DESKTOPINPUT_MAX
Definition: TeamTalk.cs:4201
BearWare.TeamTalkBase.SendDesktopInput
bool SendDesktopInput(int nUserID, DesktopInput[] lpDesktopInputs)
Send a mouse or keyboard event to a shared desktop window.
Definition: TeamTalk.cs:6264
BearWare.TeamTalkBase.ReleaseUserDesktopWindow
bool ReleaseUserDesktopWindow(DesktopWindow lpDesktopWindow)
Release memory allocated by the BearWare.DesktopWindow.
Definition: TeamTalk.cs:6322
BearWare.BitmapFormat
BitmapFormat
The bitmap format used for a BearWare.DesktopWindow.
Definition: TeamTalk.cs:722
BearWare.DesktopInputConstants.DESKTOPINPUT_KEYCODE_MMOUSEBTN
const uint DESKTOPINPUT_KEYCODE_MMOUSEBTN
Definition: TeamTalk.cs:890
BearWare.TeamTalkBase.SendDesktopCursorPosition
bool SendDesktopCursorPosition(ushort nPosX, ushort nPosY)
Send the position of mouse cursor to users in the same channel.
Definition: TeamTalk.cs:6235
BearWare.TeamTalkBase.Palette_GetColorTable
static System.Drawing.Color Palette_GetColorTable(BitmapFormat nBmpPalette, int nIndex)
Get RGB values of the palette for the bitmap format.
Definition: TeamTalk.cs:6122
BearWare.TTKeyTranslate.TTKEY_MACKEYCODE_TO_TTKEYCODE
@ TTKEY_MACKEYCODE_TO_TTKEYCODE
Translate from Mac OS X Carbon kVK_* key-code to TTKEYCODE. The Mac OS X key-codes are defined in Car...
BearWare.TTKeyTranslate.TTKEY_TTKEYCODE_TO_WINKEYCODE
@ TTKEY_TTKEYCODE_TO_WINKEYCODE
Translate from TTKEYCODE to Windows scan-code.
BearWare.TTKeyTranslate.TTKEY_WINKEYCODE_TO_TTKEYCODE
@ TTKEY_WINKEYCODE_TO_TTKEYCODE
Translate from Windows scan-code to TTKEYCODE. The Windows scan-code can be retrieved in Windows' WM_...
BearWare.TTKeyTranslate.TTKEY_TTKEYCODE_TO_MACKEYCODE
@ TTKEY_TTKEYCODE_TO_MACKEYCODE
Translate from TTKEYCODE to Mac OS X Carbon kVK_* key-code.
BearWare.TTKeyTranslate.TTKEY_NO_TRANSLATE
@ TTKEY_NO_TRANSLATE
Perform no translation.
BearWare.DesktopKeyState.DESKTOPKEYSTATE_DOWN
@ DESKTOPKEYSTATE_DOWN
The key is pressed.
BearWare.DesktopKeyState.DESKTOPKEYSTATE_NONE
@ DESKTOPKEYSTATE_NONE
The key is ignored.
BearWare.DesktopKeyState.DESKTOPKEYSTATE_UP
@ DESKTOPKEYSTATE_UP
The key is released.
BearWare.DesktopProtocol.DESKTOPPROTOCOL_ZLIB_1
@ DESKTOPPROTOCOL_ZLIB_1
Desktop protocol based on ZLIB for image compression and UDP for data transmission.
BearWare.BitmapFormat.BMP_RGB8_PALETTE
@ BMP_RGB8_PALETTE
The bitmap is a 256-colored bitmap requiring a palette. The default 256 colored palette is the Netsca...
BearWare.BitmapFormat.BMP_RGB24
@ BMP_RGB24
The bitmap is a 24-bit colored bitmap. The maximum size of a 24-bit bitmap is 4095 blocks of 85 by 16...
BearWare.BitmapFormat.BMP_RGB32
@ BMP_RGB32
The bitmap is a 32-bit colored bitmap. The maximum size of a 32-bit bitmap is 4095 blocks of 51 by 20...
BearWare.BitmapFormat.BMP_NONE
@ BMP_NONE
Used to denote nothing selected.
BearWare.BitmapFormat.BMP_RGB16_555
@ BMP_RGB16_555
The bitmap is a 16-bit colored bitmap. The maximum pixels.
BearWare.TeamTalkBase.GetErrorMessage
static string GetErrorMessage(ClientError nError)
Get textual discription of an error message.
Definition: TeamTalk.cs:8028
BearWare.ClientError
ClientError
Errors which can occur either as a result of client commands or as a result of internal errors.
Definition: TeamTalk.cs:2950
BearWare.ClientError.CMDERR_CHANNEL_ALREADY_EXISTS
@ CMDERR_CHANNEL_ALREADY_EXISTS
Channel already exists.
BearWare.ClientError.CMDERR_MAX_DISKUSAGE_EXCEEDED
@ CMDERR_MAX_DISKUSAGE_EXCEEDED
Cannot upload file because disk quota will be exceeded.
BearWare.ClientError.CMDERR_BAN_NOT_FOUND
@ CMDERR_BAN_NOT_FOUND
Banned IP-address does not exist.
BearWare.ClientError.CMDERR_MISSING_PARAMETER
@ CMDERR_MISSING_PARAMETER
Command cannot be performed due to missing parameter. Only used internally.
BearWare.ClientError.INTERR_SNDEFFECT_FAILURE
@ INTERR_SNDEFFECT_FAILURE
BearWare.SoundDeviceEffects failed to initialize.
BearWare.ClientError.CMDERR_COMMAND_FLOOD
@ CMDERR_COMMAND_FLOOD
Command flooding prevented by server.
BearWare.ClientError.CMDERR_INCORRECT_OP_PASSWORD
@ CMDERR_INCORRECT_OP_PASSWORD
Invalid password for becoming channel operator.
BearWare.ClientError.CMDERR_INCOMPATIBLE_PROTOCOLS
@ CMDERR_INCOMPATIBLE_PROTOCOLS
The server uses a protocol which is incompatible with the client instance.
BearWare.ClientError.CMDERR_CHANNEL_CANNOT_BE_HIDDEN
@ CMDERR_CHANNEL_CANNOT_BE_HIDDEN
Cannot apply ChannelType.CHANNEL_HIDDEN to BearWare.Channel's channel type.
BearWare.ClientError.CMDERR_OPENFILE_FAILED
@ CMDERR_OPENFILE_FAILED
Server failed to open file.
BearWare.ClientError.CMDERR_CHANNEL_BANNED
@ CMDERR_CHANNEL_BANNED
Banned from joining a channel.
BearWare.ClientError.CMDERR_SUCCESS
@ CMDERR_SUCCESS
Command indicating success.
BearWare.ClientError.CMDERR_ALREADY_LOGGEDIN
@ CMDERR_ALREADY_LOGGEDIN
Already logged in.
BearWare.ClientError.INTERR_TTMESSAGE_QUEUE_OVERFLOW
@ INTERR_TTMESSAGE_QUEUE_OVERFLOW
BearWare.TTMessage event queue overflowed.
BearWare.ClientError.CMDERR_INCORRECT_CHANNEL_PASSWORD
@ CMDERR_INCORRECT_CHANNEL_PASSWORD
Invalid channel password.
BearWare.ClientError.CMDERR_MAX_SERVER_USERS_EXCEEDED
@ CMDERR_MAX_SERVER_USERS_EXCEEDED
Login failed due to maximum number of users on server.
BearWare.ClientError.INTERR_SNDOUTPUT_FAILURE
@ INTERR_SNDOUTPUT_FAILURE
A sound output device failed.
BearWare.ClientError.INTERR_AUDIOPREPROCESSOR_INIT_FAILED
@ INTERR_AUDIOPREPROCESSOR_INIT_FAILED
BearWare.AudioPreprocessor failed to initialize.
BearWare.ClientError.CMDERR_INVALID_USERNAME
@ CMDERR_INVALID_USERNAME
Invalid username for BearWare.UserAccount.
BearWare.ClientError.CMDERR_USER_NOT_FOUND
@ CMDERR_USER_NOT_FOUND
User not found.
BearWare.ClientError.CMDERR_AUDIOCODEC_BITRATE_LIMIT_EXCEEDED
@ CMDERR_AUDIOCODEC_BITRATE_LIMIT_EXCEEDED
The selected BearWare.AudioCodec exceeds what the server allows.
BearWare.ClientError.INTERR_AUDIOCODEC_INIT_FAILED
@ INTERR_AUDIOCODEC_INIT_FAILED
Audio codec used by channel failed to initialize. Ensure the settings specified in BearWare....
BearWare.ClientError.CMDERR_FILE_ALREADY_EXISTS
@ CMDERR_FILE_ALREADY_EXISTS
File already exist.
BearWare.ClientError.CMDERR_MAX_CHANNEL_USERS_EXCEEDED
@ CMDERR_MAX_CHANNEL_USERS_EXCEEDED
Cannot join channel because it has maximum number of users.
BearWare.ClientError.CMDERR_FILE_NOT_FOUND
@ CMDERR_FILE_NOT_FOUND
File does not exist.
BearWare.ClientError.INTERR_SNDINPUT_FAILURE
@ INTERR_SNDINPUT_FAILURE
A sound input device failed.
BearWare.ClientError.CMDERR_NOT_LOGGEDIN
@ CMDERR_NOT_LOGGEDIN
Client instance has not been authenticated.
BearWare.ClientError.CMDERR_SERVER_BANNED
@ CMDERR_SERVER_BANNED
IP-address has been banned from server.
BearWare.ClientError.CMDERR_ACCOUNT_NOT_FOUND
@ CMDERR_ACCOUNT_NOT_FOUND
Cannot find user account.
BearWare.ClientError.CMDERR_SYNTAX_ERROR
@ CMDERR_SYNTAX_ERROR
Command has syntax error. Only used internally.
BearWare.ClientError.CMDERR_CHANNEL_HAS_USERS
@ CMDERR_CHANNEL_HAS_USERS
Cannot process command since channel is not empty.
BearWare.ClientError.CMDERR_FILETRANSFER_NOT_FOUND
@ CMDERR_FILETRANSFER_NOT_FOUND
File transfer doesn't exists.
BearWare.ClientError.CMDERR_UNKNOWN_COMMAND
@ CMDERR_UNKNOWN_COMMAND
The server doesn't support the issued command.
BearWare.ClientError.CMDERR_ALREADY_IN_CHANNEL
@ CMDERR_ALREADY_IN_CHANNEL
Cannot join same channel twice.
BearWare.ClientError.CMDERR_FILESHARING_DISABLED
@ CMDERR_FILESHARING_DISABLED
Server does not allow file transfers.
BearWare.ClientError.SUCCESS
@ SUCCESS
BearWare.ClientError.CMDERR_INVALID_ACCOUNT
@ CMDERR_INVALID_ACCOUNT
Invalid username or password for account.
BearWare.ClientError.CMDERR_MAX_CHANNELS_EXCEEDED
@ CMDERR_MAX_CHANNELS_EXCEEDED
The maximum number of channels has been exceeded.
BearWare.ClientError.CMDERR_UNKNOWN_AUDIOCODEC
@ CMDERR_UNKNOWN_AUDIOCODEC
The server does not support the audio codec specified by the client. Introduced in version 4....
BearWare.ClientError.INTERR_SPEEXDSP_INIT_FAILED
@ INTERR_SPEEXDSP_INIT_FAILED
Same as ClientError.INTERR_AUDIOPREPROCESSOR_INIT_FAILED.
BearWare.ClientError.CMDERR_MAX_LOGINS_PER_IPADDRESS_EXCEEDED
@ CMDERR_MAX_LOGINS_PER_IPADDRESS_EXCEEDED
The maximum number of logins allowed per IP-address has been exceeded.
BearWare.ClientError.CMDERR_NOT_IN_CHANNEL
@ CMDERR_NOT_IN_CHANNEL
Cannot leave channel because not in channel.
BearWare.ClientError.CMDERR_CHANNEL_NOT_FOUND
@ CMDERR_CHANNEL_NOT_FOUND
Channel does not exist.
BearWare.ClientError.CMDERR_NOT_AUTHORIZED
@ CMDERR_NOT_AUTHORIZED
Command not authorized.
BearWare.ClientError.CMDERR_LOGINSERVICE_UNAVAILABLE
@ CMDERR_LOGINSERVICE_UNAVAILABLE
The login service is currently unavailable.
BearWare.ClientError.CMDERR_INCORRECT_SERVER_PASSWORD
@ CMDERR_INCORRECT_SERVER_PASSWORD
Invalid server password.
BearWare.TeamTalkBase.ServerStats
delegate void ServerStats(ServerStatistics serverstatistics)
Delegate for event OnCmdServerStatistics.
BearWare.TeamTalkBase.UserUpdate
delegate void UserUpdate(User user)
Delegate for events OnCmdUserLoggedIn, OnCmdUserLoggedOut, OnCmdUserUpdate, OnCmdUserJoinedChannel an...
BearWare.TeamTalkBase.OnUserDesktopCursor
UserDesktopInput OnUserDesktopCursor
A user has sent the position of the mouse cursor.
Definition: TeamTalk.cs:8474
BearWare.TeamTalkBase.OnCmdUserJoinedChannel
UserUpdate OnCmdUserJoinedChannel
A user has joined a channel.
Definition: TeamTalk.cs:8327
BearWare.TeamTalkBase.OnCmdProcessing
CommandProcessing OnCmdProcessing
A command issued by Do* methods is being processed.
Definition: TeamTalk.cs:8214
BearWare.TeamTalkBase.OnHotKeyTest
HotKeyTest OnHotKeyTest
A button was pressed or released on the user's keyboard or mouse.
Definition: TeamTalk.cs:8564
BearWare.TeamTalkBase.NewAudioBlock
delegate void NewAudioBlock(int nUserID, StreamType nStreamType)
Delegate for event OnUserAudioBlock.
BearWare.TeamTalkBase.OnConnectionLost
Connection OnConnectionLost
Connection to server has been lost.
Definition: TeamTalk.cs:8177
BearWare.TeamTalkBase.OnDesktopWindowTransfer
DesktopTransferUpdate OnDesktopWindowTransfer
Used for tracking when a desktop window has been transmitted to the server.
Definition: TeamTalk.cs:8604
BearWare.TeamTalkBase.UserRecordMediaFile
delegate void UserRecordMediaFile(int nUserID, MediaFileInfo mediafileinfo)
Delegate for event OnUserRecordMediaFile.
BearWare.TeamTalkBase.OnCmdError
CommandError OnCmdError
The server rejected a command issued by the local client instance.
Definition: TeamTalk.cs:8230
BearWare.TeamTalkBase.OnConnectionMaxPayloadUpdated
MaxPayloadUpdate OnConnectionMaxPayloadUpdated
The maximum size of the payload put into UDP packets has been updated.
Definition: TeamTalk.cs:8193
BearWare.TeamTalkBase.StreamMediaFile
delegate void StreamMediaFile(MediaFileInfo mediafileinfo)
Delegate for event OnStreamMediaFile.
BearWare.TeamTalkBase.OnCmdUserUpdate
UserUpdate OnCmdUserUpdate
User changed properties.
Definition: TeamTalk.cs:8321
BearWare.TeamTalkBase.MyselfLoggedOut
delegate void MyselfLoggedOut()
Delegate for event OnCmdMyselfLoggedOut.
BearWare.TeamTalkBase.CommandSuccess
delegate void CommandSuccess(int nCmdID)
Delegate for event CommandSuccess.
BearWare.TeamTalkBase.UserVideoFrame
delegate void UserVideoFrame(int nUserID, int nStreamID)
A delegate for the event OnUserVideoCapture.
BearWare.TeamTalkBase.OnCmdChannelUpdate
ChannelUpdate OnCmdChannelUpdate
A channel's properties has been updated.
Definition: TeamTalk.cs:8365
BearWare.TeamTalkBase.ErrorOccured
delegate void ErrorOccured(ClientErrorMsg clienterrormsg)
Delegate for event OnInternalError.
BearWare.TeamTalkBase.OnUserAudioBlock
NewAudioBlock OnUserAudioBlock
A new audio block can be extracted.
Definition: TeamTalk.cs:8504
BearWare.TeamTalkBase.OnVoiceActivation
VoiceActivation OnVoiceActivation
Voice activation has triggered transmission.
Definition: TeamTalk.cs:8523
BearWare.TeamTalkBase.OnCmdMyselfLoggedOut
MyselfLoggedOut OnCmdMyselfLoggedOut
The client instance logged out of a server.
Definition: TeamTalk.cs:8272
BearWare.TeamTalkBase.OnCmdMyselfLoggedIn
MyselfLoggedIn OnCmdMyselfLoggedIn
The client instance successfully logged on to server.
Definition: TeamTalk.cs:8261
BearWare.TeamTalkBase.DesktopTransferUpdate
delegate void DesktopTransferUpdate(int nSessionID, int nBytesRemain)
Delegate for event OnDesktopWindowTransfer().
BearWare.TeamTalkBase.VoiceActivation
delegate void VoiceActivation(bool bVoiceActive)
Delegate for event OnVoiceActivation.
BearWare.TeamTalkBase.ServerUpdate
delegate void ServerUpdate(ServerProperties serverproperties)
Delegate for event OnCmdServerUpdate.
BearWare.TeamTalkBase.UserTextMessage
delegate void UserTextMessage(TextMessage textmessage)
Delegate for events OnCmdUserTextMessage.
BearWare.TeamTalkBase.OnHotKeyToggle
HotKeyToggle OnHotKeyToggle
A hotkey has been acticated or deactivated.
Definition: TeamTalk.cs:8540
BearWare.TeamTalkBase.MyselfKicked
delegate void MyselfKicked(User user)
Delegate for event OnCmdMyselfKicked.
BearWare.TeamTalkBase.OnLocalMediaFile
LocalMediaFile OnLocalMediaFile
Media file is being played locally.
Definition: TeamTalk.cs:8622
BearWare.TeamTalkBase.MaxPayloadUpdate
delegate void MaxPayloadUpdate(int nPayloadSize)
Delegate for event OnConnectionMaxPayloadUpdated().
BearWare.TeamTalkBase.OnCmdUserTextMessage
UserTextMessage OnCmdUserTextMessage
A user has sent a text-message.
Definition: TeamTalk.cs:8346
BearWare.TeamTalkBase.ChannelUpdate
delegate void ChannelUpdate(Channel channel)
Delegate for OnCmdChannelNew, OnCmdChannelUpdate and OnCmdChannelRemove.
BearWare.TeamTalkBase.HotKeyToggle
delegate void HotKeyToggle(int nHotKeyID, bool bActive)
Delegate for event OnHotKeyToggle.
BearWare.TeamTalkBase.OnAudioInput
AudioInput OnAudioInput
Audio input progress as result of TeamTalkBase.InsertAudioBlock()
Definition: TeamTalk.cs:8631
BearWare.TeamTalkBase.OnConnectionSuccess
Connection OnConnectionSuccess
Connected successfully to the server.
Definition: TeamTalk.cs:8161
BearWare.TeamTalkBase.OnCmdUserLoggedOut
UserUpdate OnCmdUserLoggedOut
A user logged out of the server.
Definition: TeamTalk.cs:8315
BearWare.TeamTalkBase.UserStreamUpdate
delegate void UserStreamUpdate(User user, int nStreamID)
Delegate for events OnUserFirstVoiceStreamPacket.
BearWare.TeamTalkBase.OnInternalError
ErrorOccured OnInternalError
A internal error occured.
Definition: TeamTalk.cs:8513
BearWare.TeamTalkBase.OnCmdSuccess
CommandSuccess OnCmdSuccess
The server successfully processed a command issued by the local client instance.
Definition: TeamTalk.cs:8244
BearWare.TeamTalkBase.OnStreamMediaFile
StreamMediaFile OnStreamMediaFile
Media file being streamed to a channel is processing.
Definition: TeamTalk.cs:8613
BearWare.TeamTalkBase.UserDesktopInput
delegate void UserDesktopInput(int nSrcUserID, DesktopInput desktopinput)
Delegate for event OnUserDesktopCursor().
BearWare.TeamTalkBase.HotKeyTest
delegate void HotKeyTest(int nVkCode, bool bActive)
Delegate for event OnHotKeyTest.
BearWare.TeamTalkBase.OnCmdMyselfKicked
MyselfKicked OnCmdMyselfKicked
The client instance was kicked from a channel.
Definition: TeamTalk.cs:8285
BearWare.TeamTalkBase.OnUserMediaFileVideo
UserVideoFrame OnUserMediaFileVideo
A new video frame was received from a user.
Definition: TeamTalk.cs:8444
BearWare.TeamTalkBase.OnUserVideoCapture
UserVideoFrame OnUserVideoCapture
A new video frame was received from a user.
Definition: TeamTalk.cs:8438
BearWare.TeamTalkBase.OnCmdChannelNew
ChannelUpdate OnCmdChannelNew
A new channel has been created.
Definition: TeamTalk.cs:8359
BearWare.TeamTalkBase.FileTransferUpdate
delegate void FileTransferUpdate(FileTransfer filetransfer)
Delegate for event OnFileTransfer.
BearWare.TeamTalkBase.OnCmdUserAccount
ListUserAccount OnCmdUserAccount
A new user account has been listed by the server. Event handler for ClientEvent.CLIENTEVENT_CMD_USERA...
Definition: TeamTalk.cs:8411
BearWare.TeamTalkBase.OnUserFirstVoiceStreamPacket
UserStreamUpdate OnUserFirstVoiceStreamPacket
The first voice packet of a new voice stream has been received.
Definition: TeamTalk.cs:8424
BearWare.TeamTalkBase.OnCmdFileNew
FileUpdate OnCmdFileNew
A new file is added to a channel.
Definition: TeamTalk.cs:8398
BearWare.TeamTalkBase.NewDesktopWindow
delegate void NewDesktopWindow(int nUserID, int nStreamID)
Delegate for event OnUserDesktopWindow.
BearWare.TeamTalkBase.CommandProcessing
delegate void CommandProcessing(int nCmdID, bool bActive)
Delegate for event OnCmdProcessing.
BearWare.TeamTalkBase.OnCmdBannedUser
ListBannedUser OnCmdBannedUser
A new banned user has been listed by the server. Event handler for ClientEvent.CLIENTEVENT_CMD_BANNED...
Definition: TeamTalk.cs:8418
BearWare.TeamTalkBase.AudioInput
delegate void AudioInput(AudioInputProgress aip)
Delegate for event OnAudioInput.
BearWare.TTType
TTType
Definition: TeamTalk.cs:3823
BearWare.TeamTalkBase.OnCmdServerStatistics
ServerStats OnCmdServerStatistics
Server statistics available.
Definition: TeamTalk.cs:8389
BearWare.TeamTalkBase.OnUserStateChange
UserUpdate OnUserStateChange
A user's state has been updated.
Definition: TeamTalk.cs:8429
BearWare.TeamTalkBase.ListBannedUser
delegate void ListBannedUser(BannedUser banneduser)
A delegate for event OnCmdUserAccount.
BearWare.TeamTalkBase.OnUserRecordMediaFile
UserRecordMediaFile OnUserRecordMediaFile
An media file recording has changed status.
Definition: TeamTalk.cs:8490
BearWare.TeamTalkBase.LocalMediaFile
delegate void LocalMediaFile(MediaFileInfo mediafileinfo)
Delegate for event OnLocalMediaFile.
BearWare.TeamTalkBase.CommandError
delegate void CommandError(int nCmdID, ClientErrorMsg clienterrormsg)
Delegate for event OnCmdError.
BearWare.TeamTalkBase.FileUpdate
delegate void FileUpdate(RemoteFile remotefile)
A delegate for events OnCmdFileNew and OnCmdFileRemove.
BearWare.ClientEvent
ClientEvent
TeamTalk client event messages.
Definition: TeamTalk.cs:3265
BearWare.TeamTalkBase.ListUserAccount
delegate void ListUserAccount(UserAccount useraccount)
A delegate for event OnCmdUserAccount.
BearWare.TeamTalkBase.OnUserDesktopWindow
NewDesktopWindow OnUserDesktopWindow
A new or updated desktop window has been received from a user.
Definition: TeamTalk.cs:8464
BearWare.TeamTalkBase.OnCmdUserLoggedIn
UserUpdate OnCmdUserLoggedIn
A new user logged on to the server.
Definition: TeamTalk.cs:8305
BearWare.TeamTalkBase.OnCmdFileRemove
FileUpdate OnCmdFileRemove
A file has been removed from a channel.
Definition: TeamTalk.cs:8404
BearWare.TeamTalkBase.OnCmdServerUpdate
ServerUpdate OnCmdServerUpdate
Server has updated its settings (server name, MOTD, etc.)
Definition: TeamTalk.cs:8380
BearWare.TeamTalkBase.OnCmdUserLeftChannel
UserUpdate OnCmdUserLeftChannel
User has left a channel.
Definition: TeamTalk.cs:8333
BearWare.TeamTalkBase.OnFileTransfer
FileTransferUpdate OnFileTransfer
A file transfer is processing.
Definition: TeamTalk.cs:8582
BearWare.TeamTalkBase.OnConnectionFailed
Connection OnConnectionFailed
Failed to connect to server.
Definition: TeamTalk.cs:8169
BearWare.TeamTalkBase.Connection
delegate void Connection()
Delegate for events OnConnectionSuccess, OnConnectionFailed and OnConnectionLost.
BearWare.TeamTalkBase.OnUserDesktopInput
UserDesktopInput OnUserDesktopInput
Desktop input (mouse or keyboard input) has been received from a user.
Definition: TeamTalk.cs:8481
BearWare.TeamTalkBase.OnCmdChannelRemove
ChannelUpdate OnCmdChannelRemove
A channel has been removed. Event handler for ClientEvent.CLIENTEVENT_CMD_CHANNEL_REMOVE.
Definition: TeamTalk.cs:8370
BearWare.TeamTalkBase.MyselfLoggedIn
delegate void MyselfLoggedIn(int nMyUserID, UserAccount useraccount)
Delegate for event OnCmdMyselfLoggedIn.
BearWare.TTType.__UINT32
@ __UINT32
BearWare.TTType.__USERSTATISTICS
@ __USERSTATISTICS
BearWare.TTType.__MEDIAFILESTATUS
@ __MEDIAFILESTATUS
BearWare.TTType.__TTMESSAGE
@ __TTMESSAGE
BearWare.TTType.__DESKTOPINPUT
@ __DESKTOPINPUT
BearWare.TTType.__SOUNDDEVICE
@ __SOUNDDEVICE
BearWare.TTType.__VIDEOCAPTUREDEVICE
@ __VIDEOCAPTUREDEVICE
BearWare.TTType.__STREAMTYPE
@ __STREAMTYPE
BearWare.TTType.__CLIENTSTATISTICS
@ __CLIENTSTATISTICS
BearWare.TTType.__USER
@ __USER
BearWare.TTType.__AUDIOCONFIG
@ __AUDIOCONFIG
BearWare.TTType.__OPUSCODEC
@ __OPUSCODEC
BearWare.TTType.__AUDIOFORMAT
@ __AUDIOFORMAT
BearWare.TTType.__AUDIOCODEC
@ __AUDIOCODEC
BearWare.TTType.__MEDIAFILEPLAYBACK
@ __MEDIAFILEPLAYBACK
BearWare.TTType.__SERVERPROPERTIES
@ __SERVERPROPERTIES
BearWare.TTType.__VIDEOFRAME
@ __VIDEOFRAME
BearWare.TTType.__AUDIOPREPROCESSORTYPE
@ __AUDIOPREPROCESSORTYPE
BearWare.TTType.__SPEEXVBRCODEC
@ __SPEEXVBRCODEC
BearWare.TTType.__CLIENTERRORMSG
@ __CLIENTERRORMSG
BearWare.TTType.__INT32
@ __INT32
BearWare.TTType.__CLIENTKEEPALIVE
@ __CLIENTKEEPALIVE
BearWare.TTType.__JITTERCONFIG
@ __JITTERCONFIG
BearWare.TTType.__TEXTMESSAGE
@ __TEXTMESSAGE
BearWare.TTType.__TTAUDIOPREPROCESSOR
@ __TTAUDIOPREPROCESSOR
BearWare.TTType.__SPEEXCODEC
@ __SPEEXCODEC
BearWare.TTType.__SPEEXDSP
@ __SPEEXDSP
BearWare.TTType.__FILETRANSFER
@ __FILETRANSFER
BearWare.TTType.__CHANNEL
@ __CHANNEL
BearWare.TTType.__REMOTEFILE
@ __REMOTEFILE
BearWare.TTType.__WEBRTCAUDIOPREPROCESSOR
@ __WEBRTCAUDIOPREPROCESSOR
BearWare.TTType.__AUDIOPREPROCESSOR
@ __AUDIOPREPROCESSOR
BearWare.TTType.__MEDIAFILEINFO
@ __MEDIAFILEINFO
BearWare.TTType.__AUDIOINPUTPROGRESS
@ __AUDIOINPUTPROGRESS
BearWare.TTType.__SERVERSTATISTICS
@ __SERVERSTATISTICS
BearWare.TTType.__AUDIOBLOCK
@ __AUDIOBLOCK
BearWare.TTType.__USERACCOUNT
@ __USERACCOUNT
BearWare.TTType.__NONE
@ __NONE
BearWare.TTType.__BANNEDUSER
@ __BANNEDUSER
BearWare.TTType.__VIDEOCODEC
@ __VIDEOCODEC
BearWare.TTType.__TTBOOL
@ __TTBOOL
BearWare.TTType.__WEBMVP8CODEC
@ __WEBMVP8CODEC
BearWare.TTType.__VIDEOFORMAT
@ __VIDEOFORMAT
BearWare.TTType.__ENCRYPTIONCONTEXT
@ __ENCRYPTIONCONTEXT
BearWare.ClientEvent.CLIENTEVENT_CMD_FILE_REMOVE
@ CLIENTEVENT_CMD_FILE_REMOVE
A file has been removed from a channel.
BearWare.ClientEvent.CLIENTEVENT_CMD_CHANNEL_UPDATE
@ CLIENTEVENT_CMD_CHANNEL_UPDATE
A channel's properties has been updated.
BearWare.ClientEvent.CLIENTEVENT_USER_DESKTOPCURSOR
@ CLIENTEVENT_USER_DESKTOPCURSOR
A user has sent the position of the mouse cursor.
BearWare.ClientEvent.CLIENTEVENT_STREAM_MEDIAFILE
@ CLIENTEVENT_STREAM_MEDIAFILE
Media file being streamed to a channel is processing.
BearWare.ClientEvent.CLIENTEVENT_CMD_SUCCESS
@ CLIENTEVENT_CMD_SUCCESS
The server successfully processed a command issued by the local client instance.
BearWare.ClientEvent.CLIENTEVENT_CMD_MYSELF_KICKED
@ CLIENTEVENT_CMD_MYSELF_KICKED
The client instance was kicked from a channel.
BearWare.ClientEvent.CLIENTEVENT_USER_STATECHANGE
@ CLIENTEVENT_USER_STATECHANGE
A user state has changed.
BearWare.ClientEvent.CLIENTEVENT_CMD_MYSELF_LOGGEDOUT
@ CLIENTEVENT_CMD_MYSELF_LOGGEDOUT
The client instance logged out of the server.
BearWare.ClientEvent.CLIENTEVENT_FILETRANSFER
@ CLIENTEVENT_FILETRANSFER
A file transfer is processing.
BearWare.ClientEvent.CLIENTEVENT_CMD_USER_JOINED
@ CLIENTEVENT_CMD_USER_JOINED
A user has joined a channel.
BearWare.ClientEvent.CLIENTEVENT_HOTKEY
@ CLIENTEVENT_HOTKEY
A hotkey has been acticated or deactivated.
BearWare.ClientEvent.CLIENTEVENT_CMD_USER_UPDATE
@ CLIENTEVENT_CMD_USER_UPDATE
User changed properties.
BearWare.ClientEvent.CLIENTEVENT_LOCAL_MEDIAFILE
@ CLIENTEVENT_LOCAL_MEDIAFILE
Media file played locally is procesing.
BearWare.ClientEvent.CLIENTEVENT_HOTKEY_TEST
@ CLIENTEVENT_HOTKEY_TEST
A button was pressed or released on the user's keyboard or mouse.
BearWare.ClientEvent.CLIENTEVENT_USER_AUDIOBLOCK
@ CLIENTEVENT_USER_AUDIOBLOCK
A new audio block can be extracted.
BearWare.ClientEvent.CLIENTEVENT_CON_MAX_PAYLOAD_UPDATED
@ CLIENTEVENT_CON_MAX_PAYLOAD_UPDATED
The maximum size of the payload put into UDP packets has been updated.
BearWare.ClientEvent.CLIENTEVENT_USER_FIRSTVOICESTREAMPACKET
@ CLIENTEVENT_USER_FIRSTVOICESTREAMPACKET
The first voice packet of a new voice stream has been received.
BearWare.ClientEvent.CLIENTEVENT_CMD_SERVER_UPDATE
@ CLIENTEVENT_CMD_SERVER_UPDATE
Server has updated its settings (server name, MOTD, etc.)
BearWare.ClientEvent.CLIENTEVENT_USER_MEDIAFILE_VIDEO
@ CLIENTEVENT_USER_MEDIAFILE_VIDEO
A new video frame from a video media file was received from a user.
BearWare.ClientEvent.CLIENTEVENT_CON_LOST
@ CLIENTEVENT_CON_LOST
Connection to server has been lost.
BearWare.ClientEvent.CLIENTEVENT_CMD_FILE_NEW
@ CLIENTEVENT_CMD_FILE_NEW
A new file is added to a channel.
BearWare.ClientEvent.CLIENTEVENT_USER_DESKTOPINPUT
@ CLIENTEVENT_USER_DESKTOPINPUT
Desktop input (mouse or keyboard input) has been received from a user.
BearWare.ClientEvent.CLIENTEVENT_CMD_MYSELF_LOGGEDIN
@ CLIENTEVENT_CMD_MYSELF_LOGGEDIN
The client instance successfully logged on to server.
BearWare.ClientEvent.CLIENTEVENT_CON_SUCCESS
@ CLIENTEVENT_CON_SUCCESS
Connected successfully to the server.
BearWare.ClientEvent.CLIENTEVENT_USER_RECORD_MEDIAFILE
@ CLIENTEVENT_USER_RECORD_MEDIAFILE
A media file recording has changed status.
BearWare.ClientEvent.CLIENTEVENT_NONE
@ CLIENTEVENT_NONE
BearWare.ClientEvent.CLIENTEVENT_USER_DESKTOPWINDOW
@ CLIENTEVENT_USER_DESKTOPWINDOW
A new or updated desktop window has been received from a user.
BearWare.ClientEvent.CLIENTEVENT_CMD_ERROR
@ CLIENTEVENT_CMD_ERROR
The server rejected a command issued by the local client instance.
BearWare.ClientEvent.CLIENTEVENT_AUDIOINPUT
@ CLIENTEVENT_AUDIOINPUT
Progress is audio being injected as StreamType.STREAMTYPE_VOICE.
BearWare.ClientEvent.CLIENTEVENT_CMD_USER_LEFT
@ CLIENTEVENT_CMD_USER_LEFT
User has left a channel.
BearWare.ClientEvent.CLIENTEVENT_CMD_PROCESSING
@ CLIENTEVENT_CMD_PROCESSING
A command issued by TeamTalkBase.Do* methods is being processed.
BearWare.ClientEvent.CLIENTEVENT_CMD_BANNEDUSER
@ CLIENTEVENT_CMD_BANNEDUSER
A banned user has been received from the server.
BearWare.ClientEvent.CLIENTEVENT_CON_FAILED
@ CLIENTEVENT_CON_FAILED
Failed to connect to server.
BearWare.ClientEvent.CLIENTEVENT_CMD_CHANNEL_NEW
@ CLIENTEVENT_CMD_CHANNEL_NEW
A new channel has been created.
BearWare.ClientEvent.CLIENTEVENT_CMD_SERVERSTATISTICS
@ CLIENTEVENT_CMD_SERVERSTATISTICS
Server statistics available.
BearWare.ClientEvent.CLIENTEVENT_USER_VIDEOCAPTURE
@ CLIENTEVENT_USER_VIDEOCAPTURE
A new video frame from a video capture device was received from a user.
BearWare.ClientEvent.CLIENTEVENT_CMD_USERACCOUNT
@ CLIENTEVENT_CMD_USERACCOUNT
A user account has been received from the server.
BearWare.ClientEvent.CLIENTEVENT_CMD_USER_TEXTMSG
@ CLIENTEVENT_CMD_USER_TEXTMSG
A user has sent a text-message.
BearWare.ClientEvent.CLIENTEVENT_CMD_USER_LOGGEDOUT
@ CLIENTEVENT_CMD_USER_LOGGEDOUT
A client logged out of the server.
BearWare.ClientEvent.CLIENTEVENT_INTERNAL_ERROR
@ CLIENTEVENT_INTERNAL_ERROR
An internal error occurred in the client instance.
BearWare.ClientEvent.CLIENTEVENT_CMD_USER_LOGGEDIN
@ CLIENTEVENT_CMD_USER_LOGGEDIN
A new user logged on to the server.
BearWare.ClientEvent.CLIENTEVENT_CMD_CHANNEL_REMOVE
@ CLIENTEVENT_CMD_CHANNEL_REMOVE
A channel has been removed.
BearWare.ClientEvent.CLIENTEVENT_VOICE_ACTIVATION
@ CLIENTEVENT_VOICE_ACTIVATION
Voice activation has triggered transmission.
BearWare.ClientEvent.CLIENTEVENT_DESKTOPWINDOW_TRANSFER
@ CLIENTEVENT_DESKTOPWINDOW_TRANSFER
Used for tracking when a desktop window has been transmitted to the server.
BearWare.TeamTalkBase.HotKey_Register
bool HotKey_Register(int nHotKeyID, int[] lpnVKCodes)
Register a global hotkey.
Definition: TeamTalk.cs:8063
BearWare.TeamTalkBase.HotKey_GetKeyString
bool HotKey_GetKeyString(int nVKCode, ref string szKeyName)
Get a string description of the virtual-key code.
Definition: TeamTalk.cs:8123
BearWare.TeamTalkBase.HotKey_IsActive
int HotKey_IsActive(int nHotKeyID)
Check whether hotkey is active.
Definition: TeamTalk.cs:8081
BearWare.TeamTalkBase.HotKey_Unregister
bool HotKey_Unregister(int nHotKeyID)
Unregister a registered hotkey.
Definition: TeamTalk.cs:8072
BearWare.TeamTalkBase.HotKey_RemoveTestHook
bool HotKey_RemoveTestHook()
Remove the test hook again so the OnHotKeyTest event will no longer be notified.
Definition: TeamTalk.cs:8113
BearWare.TeamTalkBase.HotKey_InstallTestHook
bool HotKey_InstallTestHook()
Install a test hook which calls the event OnHotKeyTest whenever a key or mouse button is pressed.
Definition: TeamTalk.cs:8094
BearWare.TeamTalkBase.GetMessage
bool GetMessage(ref TTMessage pMsg, int nWaitMs)
Poll for events in the client instance.
Definition: TeamTalk.cs:4343
BearWare.TeamTalkBase.TT_CHANNELID_MAX
const int TT_CHANNELID_MAX
The highest channel ID. Also used for TT_CLASSROOM_FREEFORALL.
Definition: TeamTalk.cs:4106
BearWare.TeamTalkBase.TT_LOCAL_USERID
const int TT_LOCAL_USERID
User ID passed to TeamTalkBase.EnableAudioBlockEvent() in order to receive BearWare....
Definition: TeamTalk.cs:4162
BearWare.TeamTalkBase.Dispose
void Dispose()
Definition: TeamTalk.cs:4310
BearWare.TeamTalkBase.GetFlags
BearWare.ClientFlag GetFlags()
Get a bitmask describing the client's current state.
Definition: TeamTalk.cs:4388
BearWare.TeamTalkBase.TT_MUXED_USERID
const int TT_MUXED_USERID
User ID used to identify muxed audio that has been mixed into a single stream.
Definition: TeamTalk.cs:4180
BearWare.TeamTalkBase.TeamTalkBase
TeamTalkBase(bool poll_based)
Create a new TeamTalk client instance.
Definition: TeamTalk.cs:4227
BearWare.ClientFlag
ClientFlag
Flags used to describe the the client instance current state.
Definition: TeamTalk.cs:3989
BearWare.TeamTalkBase.PumpMessage
bool PumpMessage(ClientEvent nClientEvent, int nIdentifier)
Cause client instance event thread to schedule an update event.
Definition: TeamTalk.cs:4374
BearWare.TeamTalkBase.TT_USERID_MAX
const int TT_USERID_MAX
The highest user ID.
Definition: TeamTalk.cs:4102
BearWare.TeamTalkBase.TT_LOCAL_TX_USERID
const int TT_LOCAL_TX_USERID
User ID passed to TeamTalkBase.EnableAudioBlockEvent() in order to receive BearWare....
Definition: TeamTalk.cs:4171
BearWare.TeamTalkBase.ProcessMsg
void ProcessMsg(TTMessage msg)
Event handler for BearWare.TTMessage.
Definition: TeamTalk.cs:4419
BearWare.TeamTalkBase.GetVersion
static string GetVersion()
Get the DLL's version number.
Definition: TeamTalk.cs:4215
BearWare.TeamTalkBase.Flags
ClientFlag Flags
Same as GetFlags().
Definition: TeamTalk.cs:4397
BearWare.TeamTalkBase.SetLicenseInformation
static bool SetLicenseInformation(string szRegName, string szRegKey)
Set license information to disable trial mode.
Definition: TeamTalk.cs:4410
BearWare.TeamTalkBase.TT_STRLEN
const int TT_STRLEN
The maximum length of all strings used in TeamTalkBase. This value includes the zero terminator,...
Definition: TeamTalk.cs:4099
BearWare.ClientFlag.CLIENT_CLOSED
@ CLIENT_CLOSED
The client instance is in closed state, i.e. no operations has been performed on it.
BearWare.ClientFlag.CLIENT_VIDEOCAPTURE_READY
@ CLIENT_VIDEOCAPTURE_READY
If set the client instance's video device has been initialized, i.e. TeamTalkBase....
BearWare.ClientFlag.CLIENT_CONNECTION
@ CLIENT_CONNECTION
Helper for ClientFlag.CLIENT_CONNECTING and ClientFlag.CLIENT_CONNECTED to see if TeamTalkBase....
BearWare.ClientFlag.CLIENT_CONNECTED
@ CLIENT_CONNECTED
If set the client instance is connected to a server, i.e. ClientEvent.CLIENTEVENT_CON_SUCCESS event h...
BearWare.ClientFlag.CLIENT_SNDINOUTPUT_DUPLEX
@ CLIENT_SNDINOUTPUT_DUPLEX
If set the client instance is running in sound duplex mode where multiple audio output streams are mi...
BearWare.ClientFlag.CLIENT_SNDOUTPUT_READY
@ CLIENT_SNDOUTPUT_READY
If set the client instance's sound output device has been initialized, i.e. TeamTalkBase....
BearWare.ClientFlag.CLIENT_CONNECTING
@ CLIENT_CONNECTING
If set the client instance is currently try to connect to a server, i.e. TeamTalkBase....
BearWare.ClientFlag.CLIENT_STREAM_VIDEO
@ CLIENT_STREAM_VIDEO
If set the client is currently streaming the video of a media file. When streaming a video file the C...
BearWare.ClientFlag.CLIENT_MUX_AUDIOFILE
@ CLIENT_MUX_AUDIOFILE
If set the client instance is currently muxing audio streams into a single file. This is enabled by c...
BearWare.ClientFlag.CLIENT_SNDOUTPUT_AUTO3DPOSITION
@ CLIENT_SNDOUTPUT_AUTO3DPOSITION
If set the client instance will auto position users in a 180 degree circle using 3D-sound....
BearWare.ClientFlag.CLIENT_DESKTOP_ACTIVE
@ CLIENT_DESKTOP_ACTIVE
If set the client instance current have an active desktop session, i.e. TeamTalkBase....
BearWare.ClientFlag.CLIENT_SNDINPUT_READY
@ CLIENT_SNDINPUT_READY
If set the client instance's sound input device has been initialized, i.e. TeamTalkBase....
BearWare.ClientFlag.CLIENT_STREAM_AUDIO
@ CLIENT_STREAM_AUDIO
If set the client is currently streaming the audio of a media file. When streaming a video file the C...
BearWare.ClientFlag.CLIENT_SNDINPUT_VOICEACTIVATED
@ CLIENT_SNDINPUT_VOICEACTIVATED
If set the client instance will start transmitting audio if the sound level is above the voice activa...
BearWare.ClientFlag.CLIENT_TX_VOICE
@ CLIENT_TX_VOICE
If set the client instance is currently transmitting audio.
BearWare.ClientFlag.CLIENT_TX_VIDEOCAPTURE
@ CLIENT_TX_VIDEOCAPTURE
If set the client instance is currently transmitting video.
BearWare.ClientFlag.CLIENT_SNDINPUT_VOICEACTIVE
@ CLIENT_SNDINPUT_VOICEACTIVE
If set GetSoundInputLevel() is higher than the voice activation level. To enable voice transmission i...
BearWare.ClientFlag.CLIENT_TX_DESKTOP
@ CLIENT_TX_DESKTOP
If set the client instance is currently transmitting a desktop window. A desktop window update is iss...
BearWare.ClientFlag.CLIENT_AUTHORIZED
@ CLIENT_AUTHORIZED
If set the client instance is logged on to a server, i.e. got ClientEvent.CLIENTEVENT_CMD_MYSELF_LOGG...
BearWare.ClientFlag.CLIENT_SNDOUTPUT_MUTE
@ CLIENT_SNDOUTPUT_MUTE
If set the client instance has muted all users.
BearWare.TeamTalkBase.UpdateStreamingMediaFileToChannel
bool UpdateStreamingMediaFileToChannel(MediaFilePlayback lpMediaFilePlayback, VideoCodec lpVideoCodec)
Update active media file being streamed to channel.
Definition: TeamTalk.cs:5902
BearWare.TeamTalkBase.StartStreamingMediaFileToChannel
bool StartStreamingMediaFileToChannel(string szMediaFilePath, VideoCodec lpVideoCodec)
Stream media file to channel, e.g. avi-, wav- or MP3-file.
Definition: TeamTalk.cs:5841
BearWare.TeamTalkBase.AcquireUserMediaVideoFrame
VideoFrame AcquireUserMediaVideoFrame(int nUserID, out Bitmap bmp)
Extract a user's media video frame for display.
Definition: TeamTalk.cs:6011
BearWare.TeamTalkBase.InitLocalPlayback
int InitLocalPlayback(string szMediaFilePath, MediaFilePlayback lpMediaFilePlayback)
Play media file using settings from TeamTalkBase instance.
Definition: TeamTalk.cs:5944
BearWare.TeamTalkBase.UpdateLocalPlayback
bool UpdateLocalPlayback(int nPlaybackSessionID, MediaFilePlayback lpMediaFilePlayback)
Definition: TeamTalk.cs:5960
BearWare.TeamTalkBase.StopLocalPlayback
bool StopLocalPlayback(int nPlaybackSessionID)
Definition: TeamTalk.cs:5974
BearWare.TeamTalkBase.StopStreamingMediaFileToChannel
bool StopStreamingMediaFileToChannel()
Stop streaming media file to channel.
Definition: TeamTalk.cs:5915
BearWare.TeamTalkBase.StartStreamingMediaFileToChannel
bool StartStreamingMediaFileToChannel(string szMediaFilePath, MediaFilePlayback lpMediaFilePlayback, VideoCodec lpVideoCodec)
Stream media file to channel, e.g. avi-, wav- or MP3-file.
Definition: TeamTalk.cs:5877
BearWare.MediaFileStatus
MediaFileStatus
Status of media file being written to disk.
Definition: TeamTalk.cs:519
BearWare.TeamTalkBase.GetMediaFileInfo
static bool GetMediaFileInfo(string szMediaFilePath, ref MediaFileInfo lpMediaFileInfo)
Get the properties of a media file.
Definition: TeamTalk.cs:5986
BearWare.TeamTalkBase.ReleaseUserMediaVideoFrame
bool ReleaseUserMediaVideoFrame(VideoFrame lpVideoFrame)
Delete a user's video frame, acquired through TeamTalkBase.AcquireUserMediaVideoFrame(),...
Definition: TeamTalk.cs:6033
BearWare.TeamTalkBase.TT_MEDIAPLAYBACK_OFFSET_IGNORE
const uint TT_MEDIAPLAYBACK_OFFSET_IGNORE
Definition: TeamTalk.cs:4211
BearWare.AudioFileFormat
AudioFileFormat
Media file formats supported for muxed audio recordings.
Definition: TeamTalk.cs:540
BearWare.MediaFileStatus.MFS_PLAYING
@ MFS_PLAYING
Playing media file with updated uElapsedMSec of BearWare.MediaFileInfo.
BearWare.MediaFileStatus.MFS_FINISHED
@ MFS_FINISHED
Finished processing media file.
BearWare.MediaFileStatus.MFS_STARTED
@ MFS_STARTED
Started processing media file.
BearWare.MediaFileStatus.MFS_PAUSED
@ MFS_PAUSED
Paused processing of media file.
BearWare.MediaFileStatus.MFS_CLOSED
@ MFS_CLOSED
BearWare.MediaFileStatus.MFS_ERROR
@ MFS_ERROR
Error while processing media file.
BearWare.MediaFileStatus.MFS_ABORTED
@ MFS_ABORTED
Aborted processing of media file.
BearWare.AudioFileFormat.AFF_MP3_128KBIT_FORMAT
@ AFF_MP3_128KBIT_FORMAT
BearWare.AudioFileFormat.AFF_MP3_256KBIT_FORMAT
@ AFF_MP3_256KBIT_FORMAT
BearWare.AudioFileFormat.AFF_MP3_16KBIT_FORMAT
@ AFF_MP3_16KBIT_FORMAT
Store in MP3-format.
BearWare.AudioFileFormat.AFF_WAVE_FORMAT
@ AFF_WAVE_FORMAT
Store in PCM 16-bit wave format.
BearWare.AudioFileFormat.AFF_MP3_64KBIT_FORMAT
@ AFF_MP3_64KBIT_FORMAT
BearWare.AudioFileFormat.AFF_CHANNELCODEC_FORMAT
@ AFF_CHANNELCODEC_FORMAT
Store audio in the same format as the BearWare.Channel's configured audio codec.
BearWare.AudioFileFormat.AFF_NONE
@ AFF_NONE
Used to denote nothing selected.
BearWare.AudioFileFormat.AFF_MP3_32KBIT_FORMAT
@ AFF_MP3_32KBIT_FORMAT
BearWare.MixerControl
MixerControl
The Windows mixer controls which can be queried by the BearWare.WindowsMixer class.
Definition: TeamTalk.cs:8726
BearWare.MixerControl.WAVEIN_MICROPHONE
@ WAVEIN_MICROPHONE
BearWare.MixerControl.WAVEOUT_MICROPHONE
@ WAVEOUT_MICROPHONE
BearWare.MixerControl.WAVEIN_LINEIN
@ WAVEIN_LINEIN
BearWare.MixerControl.WAVEOUT_MASTER
@ WAVEOUT_MASTER
BearWare.MixerControl.WAVEIN_WAVEOUT
@ WAVEIN_WAVEOUT
BearWare.MixerControl.WAVEOUT_WAVE
@ WAVEOUT_WAVE
BearWare.UserRight
UserRight
The rights users have once they have logged on to the server.
Definition: TeamTalk.cs:1724
BearWare.TeamTalkBase.GetServerUsers
bool GetServerUsers(out User[] lpUsers)
Get all the users on the server.
Definition: TeamTalk.cs:7432
BearWare.TeamTalkBase.GetServerProperties
bool GetServerProperties(ref ServerProperties lpServerProperties)
Get the server's properties.
Definition: TeamTalk.cs:7418
BearWare.BanType
BanType
Way to ban a user from either login or joining a channel.
Definition: TeamTalk.cs:1956
BearWare.UserRight.USERRIGHT_TRANSMIT_DESKTOP
@ USERRIGHT_TRANSMIT_DESKTOP
User is allowed to forward desktop packets through server.
BearWare.UserRight.USERRIGHT_MULTI_LOGIN
@ USERRIGHT_MULTI_LOGIN
Allow multiple users to log on to the server with the same BearWare.UserAccount.
BearWare.UserRight.USERRIGHT_TRANSMIT_VOICE
@ USERRIGHT_TRANSMIT_VOICE
Users are allowed to forward audio packets through server. TeamTalkBase.EnableVoiceTransmission()
BearWare.UserRight.USERRIGHT_CREATE_TEMPORARY_CHANNEL
@ USERRIGHT_CREATE_TEMPORARY_CHANNEL
User is allowed to create temporary channels which disappear when last user leaves the channel.
BearWare.UserRight.USERRIGHT_TRANSMIT_VIDEOCAPTURE
@ USERRIGHT_TRANSMIT_VIDEOCAPTURE
User is allowed to forward video packets through server. TeamTalkBase.StartVideoCaptureTransmission()
BearWare.UserRight.USERRIGHT_KICK_USERS
@ USERRIGHT_KICK_USERS
User can kick users off the server.
BearWare.UserRight.USERRIGHT_UPDATE_SERVERPROPERTIES
@ USERRIGHT_UPDATE_SERVERPROPERTIES
User can update server properties.
BearWare.UserRight.USERRIGHT_ALL
@ USERRIGHT_ALL
User with all rights.
BearWare.UserRight.USERRIGHT_LOCKED_NICKNAME
@ USERRIGHT_LOCKED_NICKNAME
User's nick name is locked. TeamTalkBase.DoChangeNickname() cannot be used and TeamTalkBase....
BearWare.UserRight.USERRIGHT_TRANSMIT_MEDIAFILE
@ USERRIGHT_TRANSMIT_MEDIAFILE
User is allowed to media files to channel.
BearWare.UserRight.USERRIGHT_BAN_USERS
@ USERRIGHT_BAN_USERS
User can add and remove banned users.
BearWare.UserRight.USERRIGHT_TRANSMIT_MEDIAFILE_VIDEO
@ USERRIGHT_TRANSMIT_MEDIAFILE_VIDEO
User is allowed to stream video files to channel.
BearWare.UserRight.USERRIGHT_TEXTMESSAGE_BROADCAST
@ USERRIGHT_TEXTMESSAGE_BROADCAST
User can broadcast text message of type TextMsgType.MSGTYPE_BROADCAST to all users.
BearWare.UserRight.USERRIGHT_TRANSMIT_MEDIAFILE_AUDIO
@ USERRIGHT_TRANSMIT_MEDIAFILE_AUDIO
User is allowed to stream audio files to channel.
BearWare.UserRight.USERRIGHT_OPERATOR_ENABLE
@ USERRIGHT_OPERATOR_ENABLE
User can make other users channel operator.
BearWare.UserRight.USERRIGHT_TRANSMIT_DESKTOPINPUT
@ USERRIGHT_TRANSMIT_DESKTOPINPUT
User is allowed to forward desktop input packets through server.
BearWare.UserRight.USERRIGHT_MOVE_USERS
@ USERRIGHT_MOVE_USERS
User can move users from one channel to another.
BearWare.UserRight.USERRIGHT_LOCKED_STATUS
@ USERRIGHT_LOCKED_STATUS
User's status is locked. TeamTalkBase.DoChangeStatus() cannot be used.
BearWare.UserRight.USERRIGHT_VIEW_ALL_USERS
@ USERRIGHT_VIEW_ALL_USERS
User can see users in all other channels.
BearWare.UserRight.USERRIGHT_DOWNLOAD_FILES
@ USERRIGHT_DOWNLOAD_FILES
User can download files from channels.
BearWare.UserRight.USERRIGHT_UPLOAD_FILES
@ USERRIGHT_UPLOAD_FILES
User can upload files to channels.
BearWare.UserRight.USERRIGHT_VIEW_HIDDEN_CHANNELS
@ USERRIGHT_VIEW_HIDDEN_CHANNELS
User can see hidden channels, ChannelType.CHANNEL_HIDDEN.
BearWare.UserRight.USERRIGHT_MODIFY_CHANNELS
@ USERRIGHT_MODIFY_CHANNELS
User is allowed to create permanent channels which are stored in the server's configuration file.
BearWare.UserRight.USERRIGHT_RECORD_VOICE
@ USERRIGHT_RECORD_VOICE
User can record voice in all channels. Even channels with ChannelType.CHANNEL_NO_RECORDING.
BearWare.UserRight.USERRIGHT_NONE
@ USERRIGHT_NONE
Users who log onto the server has none of the rights below.
BearWare.BanType.BANTYPE_NONE
@ BANTYPE_NONE
Ban type not set.
BearWare.BanType.BANTYPE_CHANNEL
@ BANTYPE_CHANNEL
The ban applies to the channel specified in the szChannel of BearWare.BannedUser. Otherwise the ban a...
BearWare.BanType.BANTYPE_USERNAME
@ BANTYPE_USERNAME
Ban szUsername specified in BearWare.BannedUser.
BearWare.BanType.BANTYPE_IPADDR
@ BANTYPE_IPADDR
Ban szIPAddress specified in BearWare.BannedUser.
BearWare.TeamTalkBase.StartSoundLoopbackTest
static IntPtr StartSoundLoopbackTest(int nInputDeviceID, int nOutputDeviceID, int nSampleRate, int nChannels, bool bDuplexMode, SpeexDSP lpSpeexDSP)
Perform a record and playback test of specified sound devices along with an audio configuration and a...
Definition: TeamTalk.cs:4671
BearWare.TeamTalkBase.SetUserMediaStorageDir
bool SetUserMediaStorageDir(int nUserID, string szFolderPath, string szFileNameVars, AudioFileFormat uAFF)
Store user's audio to disk.
Definition: TeamTalk.cs:7868
BearWare.TeamTalkBase.SetUserMediaStorageDir
bool SetUserMediaStorageDir(int nUserID, string szFolderPath, string szFileNameVars, AudioFileFormat uAFF, int nStopRecordingExtraDelayMSec)
Store user's audio to disk.
Definition: TeamTalk.cs:7898
BearWare.TeamTalkBase.Enable3DSoundPositioning
bool Enable3DSoundPositioning(bool bEnable)
Enable automatically position users using 3D-sound.
Definition: TeamTalk.cs:5153
BearWare.TeamTalkBase.ReleaseUserAudioBlock
bool ReleaseUserAudioBlock(AudioBlock lpAudioBlock)
Release the shared memory of an BearWare.AudioBlock.
Definition: TeamTalk.cs:7977
BearWare.TeamTalkBase.SetSoundInputPreprocess
bool SetSoundInputPreprocess(SpeexDSP lpSpeexDSP)
Enable sound preprocessor which should be used for processing audio recorded by the sound input devic...
Definition: TeamTalk.cs:5067
BearWare.TeamTalkBase.SetUserStereo
bool SetUserStereo(int nUserID, StreamType nStreamType, bool bLeftSpeaker, bool bRightSpeaker)
Set whether a user should speak in the left, right or both speakers. This function only works if Bear...
Definition: TeamTalk.cs:7829
BearWare.TeamTalkBase.EnableAudioBlockEvent
bool EnableAudioBlockEvent(int nUserID, StreamType uStreamTypes, AudioFormat lpAudioFormat, bool bEnable)
Same as TeamTalkBase.EnableAudioBlockEvent() but option to specify audio output format.
Definition: TeamTalk.cs:5267
BearWare.TeamTalkBase.CloseSoundDuplexDevices
bool CloseSoundDuplexDevices()
Shut down sound devices running in duplex mode.
Definition: TeamTalk.cs:4951
BearWare.TeamTalkBase.AutoPositionUsers
bool AutoPositionUsers()
Automatically position users using 3D-sound.
Definition: TeamTalk.cs:5166
BearWare.TeamTalkBase.SetSoundOutputVolume
bool SetSoundOutputVolume(int nVolume)
Set master volume.
Definition: TeamTalk.cs:5118
BearWare.TeamTalkBase.GetSoundDeviceEffects
bool GetSoundDeviceEffects(ref SoundDeviceEffects lpSoundDeviceEffect)
Get the audio effects that are currently enabled.
Definition: TeamTalk.cs:4998
BearWare.TeamTalkBase.GetSoundInputLevel
int GetSoundInputLevel()
Get the volume level of the current recorded audio.
Definition: TeamTalk.cs:5018
BearWare.TeamTalkBase.SetUserPosition
bool SetUserPosition(int nUserID, StreamType nStreamType, float x, float y, float z)
Set the position of a user.
Definition: TeamTalk.cs:7813
BearWare.TeamTalkBase.SetUserStoppedPlaybackDelay
bool SetUserStoppedPlaybackDelay(int nUserID, StreamType nStreamType, int nDelayMSec)
Set the delay of when a user should no longer be considered as playing audio (either voice or audio f...
Definition: TeamTalk.cs:7743
BearWare.TeamTalkBase.TT_SAMPLERATES_MAX
const int TT_SAMPLERATES_MAX
Definition: TeamTalk.cs:4195
BearWare.TeamTalkBase.SetUserAudioStreamBufferSize
bool SetUserAudioStreamBufferSize(int nUserID, StreamType uStreamType, int nMSec)
Change the amount of media data which can be buffered in the user's playback queue.
Definition: TeamTalk.cs:7928
BearWare.TeamTalkBase.GetSoundDevices
static bool GetSoundDevices(out SoundDevice[] lpSoundDevices)
Retrieve list of sound devices for recording and playback.
Definition: TeamTalk.cs:4639
BearWare.TeamTalkBase.GetDefaultSoundDevicesEx
static bool GetDefaultSoundDevicesEx(SoundSystem nSndSystem, ref int lpnInputDeviceID, ref int lpnOutputDeviceID)
Get the default sound devices for the specified sound system.
Definition: TeamTalk.cs:4625
BearWare.TeamTalkBase.GetUserJitterControl
bool GetUserJitterControl(int nUserID, StreamType nStreamType, ref JitterConfig lpJitterConfig)
Get the de-jitter configuration for a user.
Definition: TeamTalk.cs:7791
BearWare.TeamTalkBase.GetSoundInputPreprocess
bool GetSoundInputPreprocess(ref SpeexDSP lpSpeexDSP)
Get the sound preprocessor settings which are currently in use for recorded sound input device (voice...
Definition: TeamTalk.cs:5080
BearWare.TeamTalkBase.AcquireUserAudioBlock
AudioBlock AcquireUserAudioBlock(StreamType uStreamTypes, int nUserID)
Extract the raw audio associated with the event TeamTalkBase.OnUserAudioBlock().
Definition: TeamTalk.cs:7952
BearWare.TeamTalkBase.SetSoundOutputMute
bool SetSoundOutputMute(bool bMuteAll)
Set all users mute.
Definition: TeamTalk.cs:5139
BearWare.TeamTalkBase.InitSoundOutputSharedDevice
bool InitSoundOutputSharedDevice(int nSampleRate, int nChannels, int nFrameSize)
Setup sample rate, channels and frame size of shared sound output device.
Definition: TeamTalk.cs:4859
BearWare.TeamTalkBase.InitSoundDuplexDevices
bool InitSoundDuplexDevices(int nInputDeviceID, int nOutputDeviceID)
Enable duplex mode where multiple audio streams are mixed into a single stream using software.
Definition: TeamTalk.cs:4896
BearWare.TeamTalkBase.CloseSoundOutputDevice
bool CloseSoundOutputDevice()
Shutdown the output sound device.
Definition: TeamTalk.cs:4941
BearWare.TeamTalkBase.InitSoundOutputDevice
bool InitSoundOutputDevice(int nOutputDeviceID)
Initialize the sound output device (for audio playback).
Definition: TeamTalk.cs:4825
BearWare.TeamTalkBase.GetSoundInputGainLevel
int GetSoundInputGainLevel()
Get voice gain level of outgoing audio.
Definition: TeamTalk.cs:5047
BearWare.TeamTalkBase.RestartSoundSystem
static bool RestartSoundSystem()
Reinitialize sound system (in order to detect new/removed devices).
Definition: TeamTalk.cs:4663
BearWare.SoundSystem
SoundSystem
The supported sound systems.
Definition: TeamTalk.cs:107
BearWare.TeamTalkBase.SetUserVolume
bool SetUserVolume(int nUserID, StreamType nStreamType, int nVolume)
Set the volume of a user.
Definition: TeamTalk.cs:7712
BearWare.SoundDeviceFeature
SoundDeviceFeature
Features available on a sound device. Checkout uSoundDeviceFeatures on BearWare.SoundDevice.
Definition: TeamTalk.cs:163
BearWare.TeamTalkBase.GetSoundOutputVolume
int GetSoundOutputVolume()
Get master volume.
Definition: TeamTalk.cs:5128
BearWare.TeamTalkBase.StartSoundLoopbackTest
static IntPtr StartSoundLoopbackTest(int nInputDeviceID, int nOutputDeviceID, int nSampleRate, int nChannels, bool bDuplexMode, AudioPreprocessor lpAudioPreprocessor, BearWare.SoundDeviceEffects lpSoundDeviceEffects)
Perform a record and playback test of specified sound devices along with an audio configuration and a...
Definition: TeamTalk.cs:4710
BearWare.TeamTalkBase.SetSoundInputPreprocess
bool SetSoundInputPreprocess(AudioPreprocessor lpAudioPreprocessor)
Enable sound preprocessor which should be used for processing audio recorded by the sound input devic...
Definition: TeamTalk.cs:5095
BearWare.TeamTalkBase.GetSoundInputPreprocess
bool GetSoundInputPreprocess(ref AudioPreprocessor lpAudioPreprocessor)
Get the sound preprocessor settings which are currently in use for recorded sound input device (voice...
Definition: TeamTalk.cs:5107
BearWare.TeamTalkBase.EnableAudioBlockEvent
bool EnableAudioBlockEvent(int nUserID, StreamType uStreamTypes, bool bEnable)
Enable/disable access to raw audio from individual users, local microphone input or muxed stream of a...
Definition: TeamTalk.cs:5234
BearWare.TeamTalkBase.GetDefaultSoundDevices
static bool GetDefaultSoundDevices(ref int lpnInputDeviceID, ref int lpnOutputDeviceID)
Get the default sound devices.
Definition: TeamTalk.cs:4616
BearWare.TeamTalkBase.SetUserJitterControl
bool SetUserJitterControl(int nUserID, StreamType nStreamType, JitterConfig lpJitterConfig)
Set the configuration for de-jitter measures for a user.
Definition: TeamTalk.cs:7774
BearWare.TeamTalkBase.CloseSoundLoopbackTest
static bool CloseSoundLoopbackTest(IntPtr lpTTSoundLoop)
Stop recorder and playback test.
Definition: TeamTalk.cs:4725
BearWare.TeamTalkBase.SetUserMute
bool SetUserMute(int nUserID, StreamType nStreamType, bool bMute)
Mute a user.
Definition: TeamTalk.cs:7727
BearWare.TeamTalkBase.InitSoundInputDevice
bool InitSoundInputDevice(int nInputDeviceID)
Initialize the sound input device (for recording audio).
Definition: TeamTalk.cs:4757
BearWare.TeamTalkBase.SetSoundInputGainLevel
bool SetSoundInputGainLevel(int nLevel)
Set voice gaining of recorded audio.
Definition: TeamTalk.cs:5037
BearWare.TeamTalkBase.CloseSoundInputDevice
bool CloseSoundInputDevice()
Shutdown the input sound device.
Definition: TeamTalk.cs:4919
BearWare.TeamTalkBase.InitSoundInputSharedDevice
bool InitSoundInputSharedDevice(int nSampleRate, int nChannels, int nFrameSize)
Setup sample rate, channels and frame size of shared sound input device.
Definition: TeamTalk.cs:4792
BearWare.TeamTalkBase.SetSoundDeviceEffects
bool SetSoundDeviceEffects(SoundDeviceEffects lpSoundDeviceEffect)
Set up audio effects on a sound device.
Definition: TeamTalk.cs:4990
BearWare.SoundSystem.SOUNDSYSTEM_WINMM
@ SOUNDSYSTEM_WINMM
Windows legacy audio system. Should be used on Windows Mobile.
BearWare.SoundSystem.SOUNDSYSTEM_WASAPI
@ SOUNDSYSTEM_WASAPI
Windows Audio Session API (WASAPI). Should be used on Windows Vista/7/8/10.
BearWare.SoundSystem.SOUNDSYSTEM_DSOUND
@ SOUNDSYSTEM_DSOUND
DirectSound audio system. Should be used on Windows.
BearWare.SoundSystem.SOUNDSYSTEM_AUDIOUNIT
@ SOUNDSYSTEM_AUDIOUNIT
iOS sound API.
BearWare.SoundSystem.SOUNDSYSTEM_COREAUDIO
@ SOUNDSYSTEM_COREAUDIO
Core Audio. Should be used on MacOS.
BearWare.SoundSystem.SOUNDSYSTEM_AUDIOUNIT_IOS
@ SOUNDSYSTEM_AUDIOUNIT_IOS
Same as SoundSystem.SOUNDSYSTEM_AUDIOUNIT.
BearWare.SoundSystem.SOUNDSYSTEM_NONE
@ SOUNDSYSTEM_NONE
Sound system denoting invalid or not found.
BearWare.SoundSystem.SOUNDSYSTEM_ALSA
@ SOUNDSYSTEM_ALSA
Advanced Linux Sound Architecture (ALSA). Should be used on Linux.
BearWare.SoundSystem.SOUNDSYSTEM_OPENSLES_ANDROID
@ SOUNDSYSTEM_OPENSLES_ANDROID
Android sound API.
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_AEC
@ SOUNDDEVICEFEATURE_AEC
The BearWare.SoundDevice can enable Acoustic Echo Canceler (AEC). Enable AEC use property bEnableAEC ...
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_DEFAULTCOMDEVICE
@ SOUNDDEVICEFEATURE_DEFAULTCOMDEVICE
The BearWare.SoundDevice is the default communication device. This feature is only supported on Sound...
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_AGC
@ SOUNDDEVICEFEATURE_AGC
The BearWare.SoundDevice can enable Automatic Gain Control (AGC). Enable AGC use property bEnableAGC ...
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_DUPLEXMODE
@ SOUNDDEVICEFEATURE_DUPLEXMODE
The BearWare.SoundDevice can run in duplex mode.
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_NONE
@ SOUNDDEVICEFEATURE_NONE
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_DENOISE
@ SOUNDDEVICEFEATURE_DENOISE
The BearWare.SoundDevice can enable denoising. Enable denoising use property bEnableDenoising on Bear...
BearWare.SoundDeviceFeature.SOUNDDEVICEFEATURE_3DPOSITION
@ SOUNDDEVICEFEATURE_3DPOSITION
The BearWare.SoundDevice can position user in 3D.
BearWare.TeamTalkBase.StartRecordingMuxedAudioFile
bool StartRecordingMuxedAudioFile(AudioCodec lpAudioCodec, string szAudioFileName, AudioFileFormat uAFF)
Store all audio conversations with specific BearWare.AudioCodec settings to a single file.
Definition: TeamTalk.cs:5463
BearWare.TeamTalkBase.GetVoiceActivationLevel
int GetVoiceActivationLevel()
Get voice activation level.
Definition: TeamTalk.cs:5386
BearWare.TeamTalkBase.StopRecordingMuxedAudioFile
bool StopRecordingMuxedAudioFile(int nChannelID)
Stop recording conversations from a channel to a single file.
Definition: TeamTalk.cs:5564
BearWare.TeamTalkBase.StopVideoCaptureTransmission
bool StopVideoCaptureTransmission()
Stop transmitting from video capture device.
Definition: TeamTalk.cs:5600
BearWare.StreamType
StreamType
The types of streams which are available for transmission.
Definition: TeamTalk.cs:45
BearWare.TeamTalkBase.InsertAudioBlock
bool InsertAudioBlock(AudioBlock lpAudioBlock)
Transmit application provided raw audio in BearWare.AudioBlock-structs as StreamType....
Definition: TeamTalk.cs:5306
BearWare.TeamTalkBase.GetVoiceActivationStopDelay
int GetVoiceActivationStopDelay()
Get the delay of when voice active state should be disabled.
Definition: TeamTalk.cs:5416
BearWare.TeamTalkBase.StopRecordingMuxedAudioFile
bool StopRecordingMuxedAudioFile()
Stop an active muxed audio recording.
Definition: TeamTalk.cs:5553
BearWare.TeamTalkBase.StartVideoCaptureTransmission
bool StartVideoCaptureTransmission(VideoCodec lpVideoCodec)
Start transmitting from video capture device.
Definition: TeamTalk.cs:5591
BearWare.TeamTalkBase.EnableVoiceTransmission
bool EnableVoiceTransmission(bool bEnable)
Start/stop transmitting of voice data from sound input.
Definition: TeamTalk.cs:5328
BearWare.TeamTalkBase.EnableVoiceActivation
bool EnableVoiceActivation(bool bEnable)
Enable voice activation.
Definition: TeamTalk.cs:5358
BearWare.TeamTalkBase.StartRecordingMuxedAudioFile
bool StartRecordingMuxedAudioFile(int nChannelID, string szAudioFileName, AudioFileFormat uAFF)
Store audio conversations from a specific channel into a single file.
Definition: TeamTalk.cs:5492
BearWare.TeamTalkBase.SetVoiceActivationStopDelay
bool SetVoiceActivationStopDelay(int nDelayMSec)
Set the delay of when voice activation should be stopped.
Definition: TeamTalk.cs:5402
BearWare.TeamTalkBase.StartRecordingMuxedStreams
bool StartRecordingMuxedStreams(StreamType uStreamTypes, AudioCodec lpAudioCodec, string szAudioFileName, AudioFileFormat uAFF)
Mix multiple BearWare.StreamType into a single audio file.
Definition: TeamTalk.cs:5534
BearWare.TeamTalkBase.SetVoiceActivationLevel
bool SetVoiceActivationLevel(int nLevel)
Set voice activation level.
Definition: TeamTalk.cs:5376
BearWare.StreamType.STREAMTYPE_LOCALMEDIAPLAYBACK_AUDIO
@ STREAMTYPE_LOCALMEDIAPLAYBACK_AUDIO
Stream type for audio of local playback.
BearWare.StreamType.STREAMTYPE_NONE
@ STREAMTYPE_NONE
No stream.
BearWare.StreamType.STREAMTYPE_DESKTOP
@ STREAMTYPE_DESKTOP
Desktop window stream type which is a window (or bitmap) being transmitted.
BearWare.StreamType.STREAMTYPE_CLASSROOM_ALL
@ STREAMTYPE_CLASSROOM_ALL
Shortcut to allow voice, media files, desktop, webcamera and channel messages.
BearWare.StreamType.STREAMTYPE_DESKTOPINPUT
@ STREAMTYPE_DESKTOPINPUT
Desktop input stream type which is keyboard or mouse input being transmitted.
BearWare.StreamType.STREAMTYPE_VOICE
@ STREAMTYPE_VOICE
Voice stream type which is audio recorded from a sound input device.
BearWare.StreamType.STREAMTYPE_VIDEOCAPTURE
@ STREAMTYPE_VIDEOCAPTURE
Video capture stream type which is video recorded from a webcam.
BearWare.StreamType.STREAMTYPE_CHANNELMSG
@ STREAMTYPE_CHANNELMSG
Channel text messages as stream type.
BearWare.StreamType.STREAMTYPE_MEDIAFILE
@ STREAMTYPE_MEDIAFILE
Shortcut to allow both audio and video media files.
BearWare.StreamType.STREAMTYPE_MEDIAFILE_AUDIO
@ STREAMTYPE_MEDIAFILE_AUDIO
Audio stream type from a media file which is being streamed.
BearWare.StreamType.STREAMTYPE_MEDIAFILE_VIDEO
@ STREAMTYPE_MEDIAFILE_VIDEO
Video stream type from a media file which is being streamed.
BearWare.TeamTalkBase.TT_CHANNELS_OPERATOR_MAX
const int TT_CHANNELS_OPERATOR_MAX
Definition: TeamTalk.cs:4186
BearWare.TeamTalkBase.GetUserStatistics
bool GetUserStatistics(int nUserID, ref UserStatistics lpUserStatistics)
Get statistics for data and packet reception from a user.
Definition: TeamTalk.cs:7680
BearWare.TeamTalkBase.GetMyUserRights
BearWare.UserRight GetMyUserRights()
Convenience method for TeamTalkBase.GetMyUserAccount()
Definition: TeamTalk.cs:7641
BearWare.UserType
UserType
The types of users supported.
Definition: TeamTalk.cs:2000
BearWare.TeamTalkBase.GetMyUserID
int GetMyUserID()
Get the local client instance's user ID.
Definition: TeamTalk.cs:7590
BearWare.TeamTalkBase.GetMyUserAccount
bool GetMyUserAccount(ref UserAccount lpUserAccount)
Get the local client instance's BearWare.UserAccount.
Definition: TeamTalk.cs:7605
BearWare.TeamTalkBase.UserID
int UserID
Same as GetMyUserID().
Definition: TeamTalk.cs:7613
BearWare.TeamTalkBase.UserData
int UserData
Same as GetMyUserData().
Definition: TeamTalk.cs:7663
BearWare.TeamTalkBase.GetMyUserType
UserType GetMyUserType()
Get the client instance's user type.
Definition: TeamTalk.cs:7625
BearWare.TeamTalkBase.GetUser
bool GetUser(int nUserID, ref User lpUser)
Get the user with the specified ID.
Definition: TeamTalk.cs:7671
BearWare.TeamTalkBase.GetUserByUsername
bool GetUserByUsername(string szUsername, ref User lpUser)
Get the user with the specified username.
Definition: TeamTalk.cs:7692
BearWare.Subscription
Subscription
A user by default accepts audio, video and text messages from all users. Using subscribtions can,...
Definition: TeamTalk.cs:2115
BearWare.UserState
UserState
The possible states for a user. Used for BearWare.User's uUserState variable.
Definition: TeamTalk.cs:2181
BearWare.TeamTalkBase.UserRights
BearWare.UserRight UserRights
Same as GetMyUserRights().
Definition: TeamTalk.cs:7638
BearWare.TeamTalkBase.GetMyUserData
int GetMyUserData()
If an account was used in TeamTalkBase.DoLogin() then this value will return the nUserData from the B...
Definition: TeamTalk.cs:7655
BearWare.TextMsgType
TextMsgType
Text message types.
Definition: TeamTalk.cs:2408
BearWare.UserType.USERTYPE_NONE
@ USERTYPE_NONE
Used internally to denote an unauthenticated user.
BearWare.UserType.USERTYPE_DEFAULT
@ USERTYPE_DEFAULT
A default user who can join channels.
BearWare.UserType.USERTYPE_ADMIN
@ USERTYPE_ADMIN
A user with administrator privileges.
BearWare.Subscription.SUBSCRIBE_INTERCEPT_CUSTOM_MSG
@ SUBSCRIBE_INTERCEPT_CUSTOM_MSG
Intercept all custom text messages sent by user. Only user-type UserType.USERTYPE_ADMIN can do this.
BearWare.Subscription.SUBSCRIBE_VOICE
@ SUBSCRIBE_VOICE
Subscribing to StreamType.STREAMTYPE_VOICE.
BearWare.Subscription.SUBSCRIBE_DESKTOPINPUT
@ SUBSCRIBE_DESKTOPINPUT
Subscribing to StreamType.STREAMTYPE_DESKTOPINPUT.
BearWare.Subscription.SUBSCRIBE_VIDEOCAPTURE
@ SUBSCRIBE_VIDEOCAPTURE
Subscribing to StreamType.STREAMTYPE_VIDEOCAPTURE.
BearWare.Subscription.SUBSCRIBE_MEDIAFILE
@ SUBSCRIBE_MEDIAFILE
Subscribing to StreamType.STREAMTYPE_MEDIAFILE_VIDEO and StreamType.STREAMTYPE_MEDIAFILE_AUDIO.
BearWare.Subscription.SUBSCRIBE_INTERCEPT_MEDIAFILE
@ SUBSCRIBE_INTERCEPT_MEDIAFILE
Intercept all media file data sent by a user. Only user-type UserType.USERTYPE_ADMIN can do this....
BearWare.Subscription.SUBSCRIBE_BROADCAST_MSG
@ SUBSCRIBE_BROADCAST_MSG
Subscribing to broadcast text messsages.
BearWare.Subscription.SUBSCRIBE_INTERCEPT_CHANNEL_MSG
@ SUBSCRIBE_INTERCEPT_CHANNEL_MSG
Intercept all channel messages sent by a user. Only user-type UserType.USERTYPE_ADMIN can do this.
BearWare.Subscription.SUBSCRIBE_DESKTOP
@ SUBSCRIBE_DESKTOP
Subscribing to StreamType.STREAMTYPE_DESKTOP.
BearWare.Subscription.SUBSCRIBE_INTERCEPT_VIDEOCAPTURE
@ SUBSCRIBE_INTERCEPT_VIDEOCAPTURE
Intercept all video sent by a user. Only user-type UserType.USERTYPE_ADMIN can do this....
BearWare.Subscription.SUBSCRIBE_INTERCEPT_USER_MSG
@ SUBSCRIBE_INTERCEPT_USER_MSG
Intercept all user text messages sent by a user. Only user-type UserType.USERTYPE_ADMIN can do this.
BearWare.Subscription.SUBSCRIBE_CUSTOM_MSG
@ SUBSCRIBE_CUSTOM_MSG
Subscribing to custom user messages.
BearWare.Subscription.SUBSCRIBE_INTERCEPT_DESKTOP
@ SUBSCRIBE_INTERCEPT_DESKTOP
Intercept all desktop data sent by a user. Only user-type UserType.USERTYPE_ADMIN can do this....
BearWare.Subscription.SUBSCRIBE_CHANNEL_MSG
@ SUBSCRIBE_CHANNEL_MSG
Subscribing to channel texxt messages.
BearWare.Subscription.SUBSCRIBE_USER_MSG
@ SUBSCRIBE_USER_MSG
Subscribing to user text messages.
BearWare.Subscription.SUBSCRIBE_NONE
@ SUBSCRIBE_NONE
No subscriptions.
BearWare.Subscription.SUBSCRIBE_INTERCEPT_VOICE
@ SUBSCRIBE_INTERCEPT_VOICE
Intercept all voice sent by a user. Only user-type UserType.USERTYPE_ADMIN can do this....
BearWare.UserState.USERSTATE_MUTE_MEDIAFILE
@ USERSTATE_MUTE_MEDIAFILE
If set the user's media file playback is muted.
BearWare.UserState.USERSTATE_MEDIAFILE_AUDIO
@ USERSTATE_MEDIAFILE_AUDIO
If set the user currently streams an audio file. If user is streaming a video file with audio then th...
BearWare.UserState.USERSTATE_VIDEOCAPTURE
@ USERSTATE_VIDEOCAPTURE
If set the user currently has an active video stream. If this flag changes the event ClientEvent....
BearWare.UserState.USERSTATE_MUTE_VOICE
@ USERSTATE_MUTE_VOICE
If set the user's voice is muted.
BearWare.UserState.USERSTATE_VOICE
@ USERSTATE_VOICE
If set the user is currently talking. If this flag changes the event ClientEvent.CLIENTEVENT_USER_STA...
BearWare.UserState.USERSTATE_DESKTOP
@ USERSTATE_DESKTOP
If set the user currently has an active desktop session. If this flag changes the event ClientEvent....
BearWare.UserState.USERSTATE_MEDIAFILE
@ USERSTATE_MEDIAFILE
If set user is streaming a media file. If this flag changes the event ClientEvent....
BearWare.UserState.USERSTATE_MEDIAFILE_VIDEO
@ USERSTATE_MEDIAFILE_VIDEO
If set the user currently streams a video file. If this flag changes the event ClientEvent....
BearWare.UserState.USERSTATE_NONE
@ USERSTATE_NONE
The user is in initial state.
BearWare.TextMsgType.MSGTYPE_CUSTOM
@ MSGTYPE_CUSTOM
A custom user to user text message. Works the same way as TextMsgType TextMsgType....
BearWare.TextMsgType.MSGTYPE_USER
@ MSGTYPE_USER
A User to user text message. A message of this type can be sent across channels.
BearWare.TextMsgType.MSGTYPE_BROADCAST
@ MSGTYPE_BROADCAST
A broadcast message. Requires UserRight.USERRIGHT_TEXTMESSAGE_BROADCAST.
BearWare.TextMsgType.MSGTYPE_CHANNEL
@ MSGTYPE_CHANNEL
A User to channel text message. Users of type UserType.USERTYPE_DEFAULT can only send this text messa...
BearWare.TeamTalkBase.PaintVideoFrame
bool PaintVideoFrame(int nUserID, System.IntPtr hDC, int XDest, int YDest, int nDestWidth, int nDestHeight, ref VideoFrame lpVideoFrame)
Paint user's video frame using a Windows' DC (device context).
Definition: TeamTalk.cs:5671
BearWare.TeamTalkBase.InitVideoCaptureDevice
bool InitVideoCaptureDevice(string szDeviceID, VideoFormat lpVideoFormat)
Initialize a video capture device.
Definition: TeamTalk.cs:5644
BearWare.TeamTalkBase.ReleaseUserVideoCaptureFrame
bool ReleaseUserVideoCaptureFrame(VideoFrame lpVideoFrame)
Delete a user's video frame, acquired through TeamTalkBase.AcquireUserVideoCaptureFrame(),...
Definition: TeamTalk.cs:5773
BearWare.TeamTalkBase.PaintVideoFrameEx
bool PaintVideoFrameEx(int nUserID, System.IntPtr hDC, int XDest, int YDest, int nDestWidth, int nDestHeight, int XSrc, int YSrc, int nSrcWidth, int nSrcHeight, ref VideoFrame lpVideoFrame)
Paint user's video frame using a Windows' DC (device context).
Definition: TeamTalk.cs:5714
BearWare.TeamTalkBase.AcquireUserVideoCaptureFrame
VideoFrame AcquireUserVideoCaptureFrame(int nUserID, out Bitmap bmp)
Extract a user's video frame for display.
Definition: TeamTalk.cs:5749
BearWare.TeamTalkBase.GetVideoCaptureDevices
static bool GetVideoCaptureDevices(out VideoCaptureDevice[] lpVideoDevices)
Get the list of devices available for video capture.
Definition: TeamTalk.cs:5616
BearWare.TeamTalkBase.CloseVideoCaptureDevice
bool CloseVideoCaptureDevice()
Close a video capture device.
Definition: TeamTalk.cs:5653
BearWare.FourCC
FourCC
The picture format used by a capture device.
Definition: TeamTalk.cs:599
BearWare.TeamTalkBase.TT_VIDEOFORMATS_MAX
const int TT_VIDEOFORMATS_MAX
Definition: TeamTalk.cs:4111
BearWare.FourCC.FOURCC_YUY2
@ FOURCC_YUY2
Image format where a 640x480 pixel images takes up 614.400 bytes.
BearWare.FourCC.FOURCC_NONE
@ FOURCC_NONE
Internal use to denote no supported formats.
BearWare.FourCC.FOURCC_I420
@ FOURCC_I420
Prefered image format with the lowest bandwidth usage. A 640x480 pixel image takes up 460....
BearWare.FourCC.FOURCC_RGB32
@ FOURCC_RGB32
The image format with the highest bandwidth usage. A 640x480 pixel images takes up 1....
BearWare
Definition: modules-net.txt:2
BearWare.AbusePrevention
Properties to prevent server abuse.
Definition: TeamTalk.cs:2020
BearWare.AbusePrevention.nCommandsLimit
int nCommandsLimit
Limit number of commands a user can send to the server.
Definition: TeamTalk.cs:2030
BearWare.AbusePrevention.nCommandsIntervalMSec
int nCommandsIntervalMSec
Commands within given interval.
Definition: TeamTalk.cs:2032
BearWare.AudioBlock
An audio block containing the raw audio from a user who was talking.
Definition: TeamTalk.cs:472
BearWare.AudioBlock.nSamples
int nSamples
The number of samples in the raw audio array.
Definition: TeamTalk.cs:486
BearWare.AudioBlock.uStreamTypes
StreamType uStreamTypes
The stream types used to generate the AudioBlock's raw audio.
Definition: TeamTalk.cs:507
BearWare.AudioBlock.nSampleRate
int nSampleRate
The sample rate of the raw audio.
Definition: TeamTalk.cs:478
BearWare.AudioBlock.uSampleIndex
uint uSampleIndex
The index of the first sample in lpRawAudio. Its value will be a multiple of nSamples....
Definition: TeamTalk.cs:494
BearWare.AudioBlock.nStreamID
int nStreamID
The ID of the stream. The stream id changes every time the user enables a new transmission using Team...
Definition: TeamTalk.cs:476
BearWare.AudioBlock.nChannels
int nChannels
The number of channels used (1 for mono, 2 for stereo).
Definition: TeamTalk.cs:480
BearWare.AudioBlock.lpRawAudio
System.IntPtr lpRawAudio
The raw audio in 16-bit integer format array. The size of the array in bytes is sizeof(short) * nSamp...
Definition: TeamTalk.cs:484
BearWare.AudioCodec
Struct used for specifying which audio codec a channel uses.
Definition: TeamTalk.cs:1566
BearWare.AudioCodec.speex_vbr
SpeexVBRCodec speex_vbr
Speex codec settings if nCodec is Codec.SPEEX_VBR_CODEC.
Definition: TeamTalk.cs:1578
BearWare.AudioCodec.speex
SpeexCodec speex
Speex codec settings if nCodec is Codec.SPEEX_CODEC.
Definition: TeamTalk.cs:1574
BearWare.AudioCodec.nCodec
Codec nCodec
Specifies whether the member speex, speex_vbr or opus holds the codec settings.
Definition: TeamTalk.cs:1570
BearWare.AudioCodec.opus
OpusCodec opus
Opus codec settings if nCodec is OPUS_CODEC.
Definition: TeamTalk.cs:1582
BearWare.AudioConfigConstants
Definition: TeamTalk.cs:1624
BearWare.AudioConfigConstants.DEFAULT_AGC_INC_MAXDB
const int DEFAULT_AGC_INC_MAXDB
Definition: TeamTalk.cs:1626
BearWare.AudioConfigConstants.DEFAULT_AGC_GAINLEVEL
const int DEFAULT_AGC_GAINLEVEL
Definition: TeamTalk.cs:1625
BearWare.AudioConfig
Audio configuration for clients in a channel.
Definition: TeamTalk.cs:1600
BearWare.AudioConfig.AudioConfig
AudioConfig(bool set_defaults)
Definition: TeamTalk.cs:1608
BearWare.AudioConfig.nGainLevel
int nGainLevel
Reference gain level to be used by all users.
Definition: TeamTalk.cs:1606
BearWare.AudioConfig.bEnableAGC
bool bEnableAGC
Users should enable automatic gain control.
Definition: TeamTalk.cs:1603
BearWare.AudioFormat
Struct describing the audio format used by a.
Definition: TeamTalk.cs:579
BearWare.AudioFormat.nAudioFmt
AudioFileFormat nAudioFmt
The audio file format, e.g. wave or MP3.
Definition: TeamTalk.cs:581
BearWare.AudioFormat.nSampleRate
int nSampleRate
Sample rate of media file.
Definition: TeamTalk.cs:583
BearWare.AudioFormat.nChannels
int nChannels
Channels used by media file, mono = 1, stereo = 2.
Definition: TeamTalk.cs:585
BearWare.AudioInputProgress
The progress of the audio currently being processed as audio input.
Definition: TeamTalk.cs:1695
BearWare.AudioInputProgress.uElapsedMSec
uint uElapsedMSec
The duration of the audio that has been transmitted.
Definition: TeamTalk.cs:1703
BearWare.AudioInputProgress.nStreamID
int nStreamID
The stream ID provided in the BearWare.AudioBlock.
Definition: TeamTalk.cs:1697
BearWare.AudioInputProgress.uQueueMSec
uint uQueueMSec
The duration of the audio currently queued for transmission.
Definition: TeamTalk.cs:1700
BearWare.AudioPreprocessor
Configure the audio preprocessor specified by nPreprocessor.
Definition: TeamTalk.cs:1470
BearWare.AudioPreprocessor.webrtc
WebRTCAudioPreprocessor webrtc
Used when nPreprocessor is AudioPreprocessorType.WEBRTC_AUDIOPREPROCESSOR.
Definition: TeamTalk.cs:1482
BearWare.AudioPreprocessor.speexdsp
SpeexDSP speexdsp
Used when nPreprocessor is AudioPreprocessorType.SPEEXDSP_AUDIOPREPROCESSOR.
Definition: TeamTalk.cs:1476
BearWare.AudioPreprocessor.nPreprocessor
AudioPreprocessorType nPreprocessor
The audio preprocessor to use in the union of audio preprocessors.
Definition: TeamTalk.cs:1473
BearWare.AudioPreprocessor.ttpreprocessor
TTAudioPreprocessor ttpreprocessor
Used when nPreprocessor is AudioPreprocessorType.TEAMTALK_AUDIOPREPROCESSOR.
Definition: TeamTalk.cs:1479
BearWare.BannedUser
A struct containing the properties of a banned user.
Definition: TeamTalk.cs:1975
BearWare.BannedUser.szIPAddress
string szIPAddress
IP-address of banned user.
Definition: TeamTalk.cs:1978
BearWare.BannedUser.szNickname
string szNickname
Nickname of banned user. Read-only property.
Definition: TeamTalk.cs:1987
BearWare.BannedUser.szChannelPath
string szChannelPath
Channel where user was located when banned.
Definition: TeamTalk.cs:1981
BearWare.BannedUser.szUsername
string szUsername
Username of banned user.
Definition: TeamTalk.cs:1990
BearWare.BannedUser.uBanTypes
BanType uBanTypes
The type of ban that applies to this banned user.
Definition: TeamTalk.cs:1992
BearWare.BannedUser.szBanTime
string szBanTime
Date and time when user was banned. Read-only property.
Definition: TeamTalk.cs:1984
BearWare.Channel
A struct containing the properties of a channel.
Definition: TeamTalk.cs:2509
BearWare.Channel.transmitUsersQueue
int[] transmitUsersQueue
The users currently queued for voice or media file transmission.
Definition: TeamTalk.cs:2611
BearWare.Channel.AddTransmitUser
void AddTransmitUser(int nUserID, StreamType uStreamType)
Helper function for adding a user and BearWare.StreamType to transmitUsers.
Definition: TeamTalk.cs:2615
BearWare.Channel.GetTransmitUserCount
int GetTransmitUserCount()
Get the number of users who can currently transmit to the ChannelType.CHANNEL_CLASSROOM.
Definition: TeamTalk.cs:2642
BearWare.Channel.audiocfg
AudioConfig audiocfg
The audio configuration which users who join the channel should use.
Definition: TeamTalk.cs:2548
BearWare.Channel.RemoveTransmitUser
void RemoveTransmitUser(int nUserID, StreamType uStreamType)
Helper function for removing a StreamType for a user in transmitUsers.
Definition: TeamTalk.cs:2653
BearWare.Channel.bPassword
bool bPassword
Whether password is required to join channel. Read-only property.
Definition: TeamTalk.cs:2529
BearWare.Channel.szPassword
string szPassword
Password to join the channel. When extracted through TeamTalkBase.GetChannel() the password will only...
Definition: TeamTalk.cs:2526
BearWare.Channel.nDiskQuota
long nDiskQuota
Number of bytes available for file storage.
Definition: TeamTalk.cs:2537
BearWare.Channel.transmitUsers
int[] transmitUsers
List of users who can transmit in a channel.
Definition: TeamTalk.cs:2605
BearWare.Channel.GetTransmitStreamTypes
StreamType GetTransmitStreamTypes(int nUserID)
Helper function for getting the StreamType a user can transmit by querying transmitUsers.
Definition: TeamTalk.cs:2631
BearWare.Channel.szTopic
string szTopic
Topic of the channel.
Definition: TeamTalk.cs:2521
BearWare.Channel.audiocodec
AudioCodec audiocodec
The audio codec used by users in the channel.
Definition: TeamTalk.cs:2545
BearWare.Channel.nUserData
int nUserData
User specific data which will be stored on persistent storage on the server if the channel type is Ch...
Definition: TeamTalk.cs:2535
BearWare.Channel.szOpPassword
string szOpPassword
Password to become channel operator.
Definition: TeamTalk.cs:2541
BearWare.Channel.nParentID
int nParentID
Parent channel ID. 0 means no parent channel, i.e. it's the root channel.
Definition: TeamTalk.cs:2512
BearWare.Channel.nChannelID
int nChannelID
The channel's ID. A value from 1 - BearWare.TeamTalkBase.TT_CHANNELID_MAX.
Definition: TeamTalk.cs:2515
BearWare.Channel.uChannelType
ChannelType uChannelType
A bitmask of the type of channel based on BearWare.ChannelType.
Definition: TeamTalk.cs:2531
BearWare.Channel.nMaxUsers
int nMaxUsers
Max number of users in channel.
Definition: TeamTalk.cs:2543
BearWare.Channel.szName
string szName
Name of the channel.
Definition: TeamTalk.cs:2518
BearWare.ClientErrorMsg
Definition: TeamTalk.cs:3247
BearWare.ClientErrorMsg.szErrorMsg
string szErrorMsg
Text message describing the error.
Definition: TeamTalk.cs:3252
BearWare.ClientErrorMsg.nErrorNo
int nErrorNo
Error number based on ClientError.
Definition: TeamTalk.cs:3249
BearWare.ClientKeepAlive
Control timers for sending keep alive information to the server.
Definition: TeamTalk.cs:2811
BearWare.ClientKeepAlive.nUdpConnectTimeoutMSec
int nUdpConnectTimeoutMSec
The duration before the client instance should give up trying to connect to the server on UDP....
Definition: TeamTalk.cs:2853
BearWare.ClientKeepAlive.nUdpKeepAliveRTXMSec
int nUdpKeepAliveRTXMSec
Client instance's interval for retransmitting UDP keep alive packets. If server hasn't responded to U...
Definition: TeamTalk.cs:2838
BearWare.ClientKeepAlive.nUdpConnectRTXMSec
int nUdpConnectRTXMSec
Client instance's interval for retransmitting UDP connect packets. UDP connect packets are only sent ...
Definition: TeamTalk.cs:2845
BearWare.ClientKeepAlive.nTcpKeepAliveIntervalMSec
int nTcpKeepAliveIntervalMSec
Client instance's interval between TeamTalkBase.DoPing() command. Read-only value....
Definition: TeamTalk.cs:2826
BearWare.ClientKeepAlive.nUdpKeepAliveIntervalMSec
int nUdpKeepAliveIntervalMSec
Client instance's interval between sending UDP keep alive packets. The UDP keep alive packets are use...
Definition: TeamTalk.cs:2832
BearWare.ClientKeepAlive.nConnectionLostMSec
int nConnectionLostMSec
The duration before the TeamTalk instance should consider the client/server connection lost.
Definition: TeamTalk.cs:2822
BearWare.ClientStatistics
Statistics of bandwidth usage and ping times in the local client instance.
Definition: TeamTalk.cs:2862
BearWare.ClientStatistics.nVoiceBytesRecv
long nVoiceBytesRecv
Voice data received (on UDP).
Definition: TeamTalk.cs:2870
BearWare.ClientStatistics.nSoundInputDeviceDelayMSec
int nSoundInputDeviceDelayMSec
Delay of sound input device until the first audio frame is delivered (in msec).
Definition: TeamTalk.cs:2912
BearWare.ClientStatistics.nVideoCaptureBytesRecv
long nVideoCaptureBytesRecv
Video data received (on UDP).
Definition: TeamTalk.cs:2874
BearWare.ClientStatistics.nTcpPingTimeMs
int nTcpPingTimeMs
Response time to server on TCP (based on ping/pong sent at a specified interval. Set to -1 if not cur...
Definition: TeamTalk.cs:2894
BearWare.ClientStatistics.nUdpServerSilenceSec
int nUdpServerSilenceSec
The number of seconds nothing has been received by the client on UDP.
Definition: TeamTalk.cs:2900
BearWare.ClientStatistics.nMediaFileVideoBytesSent
long nMediaFileVideoBytesSent
Video from media file data sent (on UDP).
Definition: TeamTalk.cs:2880
BearWare.ClientStatistics.nMediaFileVideoBytesRecv
long nMediaFileVideoBytesRecv
Video from media file data received (on UDP).
Definition: TeamTalk.cs:2882
BearWare.ClientStatistics.nMediaFileAudioBytesSent
long nMediaFileAudioBytesSent
Audio from media file data sent (on UDP).
Definition: TeamTalk.cs:2876
BearWare.ClientStatistics.nVoiceBytesSent
long nVoiceBytesSent
Voice data sent (on UDP).
Definition: TeamTalk.cs:2868
BearWare.ClientStatistics.nUdpBytesSent
long nUdpBytesSent
Bytes sent on UDP.
Definition: TeamTalk.cs:2864
BearWare.ClientStatistics.nMediaFileAudioBytesRecv
long nMediaFileAudioBytesRecv
Audio from media file data received (on UDP).
Definition: TeamTalk.cs:2878
BearWare.ClientStatistics.nVideoCaptureBytesSent
long nVideoCaptureBytesSent
Video data sent (on UDP).
Definition: TeamTalk.cs:2872
BearWare.ClientStatistics.nTcpServerSilenceSec
int nTcpServerSilenceSec
The number of seconds nothing has been received by the client on TCP.
Definition: TeamTalk.cs:2897
BearWare.ClientStatistics.nUdpBytesRecv
long nUdpBytesRecv
Bytes received on UDP.
Definition: TeamTalk.cs:2866
BearWare.ClientStatistics.nDesktopBytesSent
long nDesktopBytesSent
Desktop data sent (on UDP).
Definition: TeamTalk.cs:2884
BearWare.ClientStatistics.nDesktopBytesRecv
long nDesktopBytesRecv
Desktop data received (on UDP).
Definition: TeamTalk.cs:2886
BearWare.ClientStatistics.nUdpPingTimeMs
int nUdpPingTimeMs
Response time to server on UDP (based on ping/pong sent at a specified interval. Set to -1 if not cur...
Definition: TeamTalk.cs:2890
BearWare.DesktopInputConstants
Constants for BearWare.DesktopInput.
Definition: TeamTalk.cs:849
BearWare.DesktopInput
A struct containing a mouse or keyboard event.
Definition: TeamTalk.cs:811
BearWare.DesktopInput.uMousePosX
ushort uMousePosX
The X coordinate of the mouse. If used with WindowsHelper.Execute() and the mouse position should be ...
Definition: TeamTalk.cs:815
BearWare.DesktopInput.uKeyCode
uint uKeyCode
The key-code (or mouse button) pressed. If used with TeamTalkBase.DesktopInput_Execute() and no key (...
Definition: TeamTalk.cs:825
BearWare.DesktopInput.DesktopInput
DesktopInput(bool set_defaults)
When true initializes the desktop input to ignore mouse and key values.
Definition: TeamTalk.cs:830
BearWare.DesktopInput.uMousePosY
ushort uMousePosY
The Y coordinate of the mouse. If used with TeamTalkBase.DesktopInput_Execute() and the mouse positio...
Definition: TeamTalk.cs:819
BearWare.DesktopInput.uKeyState
DesktopKeyState uKeyState
The state of the key (or mouse button) pressed, i.e. if it's up or down.
Definition: TeamTalk.cs:828
BearWare.DesktopWindow
A struct containing the properties of a shared desktop window.
Definition: TeamTalk.cs:763
BearWare.DesktopWindow.nSessionID
int nSessionID
The ID of the session which the bitmap belongs to. If the session ID changes it means the user has st...
Definition: TeamTalk.cs:779
BearWare.DesktopWindow.nWidth
int nWidth
The width in pixels of the bitmap.
Definition: TeamTalk.cs:765
BearWare.DesktopWindow.nProtocol
DesktopProtocol nProtocol
The desktop protocol used for transmitting the desktop window.
Definition: TeamTalk.cs:781
BearWare.DesktopWindow.nBytesPerLine
int nBytesPerLine
The number of bytes for each scan-line in the bitmap. Zero means 4-byte aligned.
Definition: TeamTalk.cs:772
BearWare.DesktopWindow.frameBuffer
IntPtr frameBuffer
A buffer pointing to the bitmap data (often refered to as Scan0).
Definition: TeamTalk.cs:783
BearWare.DesktopWindow.nFrameBufferSize
int nFrameBufferSize
The size in bytes of the buffer allocate in frameBuffer. Typically nBytesPerLine * nHeight.
Definition: TeamTalk.cs:786
BearWare.DesktopWindow.bmpFormat
BitmapFormat bmpFormat
The format of the bitmap.
Definition: TeamTalk.cs:769
BearWare.DesktopWindow.nHeight
int nHeight
The height in pixels of the bitmap.
Definition: TeamTalk.cs:767
BearWare.EncryptionContext
Configure peer verification for encrypted connection.
Definition: TeamTalk.cs:2753
BearWare.EncryptionContext.szCAFile
string szCAFile
Path to Certificate Authority (CA) Certificate in PEM format.
Definition: TeamTalk.cs:2769
BearWare.EncryptionContext.bVerifyClientOnce
bool bVerifyClientOnce
Whether to only verify client's certificate once during initial connection.
Definition: TeamTalk.cs:2791
BearWare.EncryptionContext.nVerifyDepth
int nVerifyDepth
Set limit to depth in the certificate chain during the verification procedure.
Definition: TeamTalk.cs:2799
BearWare.EncryptionContext.szCertificateFile
string szCertificateFile
Path to SSL certificate in PEM format.
Definition: TeamTalk.cs:2760
BearWare.EncryptionContext.szPrivateKeyFile
string szPrivateKeyFile
Path to certificate's private key.
Definition: TeamTalk.cs:2763
BearWare.EncryptionContext.bVerifyPeer
bool bVerifyPeer
Verify that peer (client or server) uses a certificate that has been generated by the Certificate Aut...
Definition: TeamTalk.cs:2780
BearWare.EncryptionContext.szCADir
string szCADir
Path to directory containing Certificate Authority (CA) Certificates in PEM format.
Definition: TeamTalk.cs:2773
BearWare.FileTransfer
A struct containing the properties of a file transfer.
Definition: TeamTalk.cs:2697
BearWare.FileTransfer.bInbound
bool bInbound
TRUE if download and FALSE if upload.
Definition: TeamTalk.cs:2715
BearWare.FileTransfer.nStatus
FileTransferStatus nStatus
Status of file transfer.
Definition: TeamTalk.cs:2699
BearWare.FileTransfer.szRemoteFileName
string szRemoteFileName
The filename in the channel.
Definition: TeamTalk.cs:2709
BearWare.FileTransfer.szLocalFilePath
string szLocalFilePath
The file path on local disk.
Definition: TeamTalk.cs:2706
BearWare.FileTransfer.nTransferred
long nTransferred
The number of bytes transferred so far.
Definition: TeamTalk.cs:2713
BearWare.FileTransfer.nFileSize
long nFileSize
The size of the file being transferred.
Definition: TeamTalk.cs:2711
BearWare.FileTransfer.nTransferID
int nTransferID
The ID identifying the file transfer.
Definition: TeamTalk.cs:2701
BearWare.FileTransfer.nChannelID
int nChannelID
The channel where the file is/will be located.
Definition: TeamTalk.cs:2703
BearWare.JitterConfig
Configuration parameters for the Jitter Buffer.
Definition: TeamTalk.cs:2922
BearWare.JitterConfig.nMaxAdaptiveDelayMSec
int nMaxAdaptiveDelayMSec
A hard maximum delay on the adaptive delay. Only valid when higher than zero. Default = 0.
Definition: TeamTalk.cs:2929
BearWare.JitterConfig.nActiveAdaptiveDelayMSec
int nActiveAdaptiveDelayMSec
The current adaptive delay. When used with TeamTalkBase.SetUserJitterControl(), this value is used as...
Definition: TeamTalk.cs:2936
BearWare.JitterConfig.bUseAdativeDejitter
bool bUseAdativeDejitter
Turns adaptive jitter buffering ON/OFF. Default is OFF.
Definition: TeamTalk.cs:2926
BearWare.JitterConfig.nFixedDelayMSec
int nFixedDelayMSec
The fixed delay in milliseconds. Default = 0.
Definition: TeamTalk.cs:2924
BearWare.MediaFileInfo
Struct describing the audio and video format used by a media file.
Definition: TeamTalk.cs:1653
BearWare.MediaFileInfo.uElapsedMSec
uint uElapsedMSec
The elapsed time of the media file in miliseconds.
Definition: TeamTalk.cs:1667
BearWare.MediaFileInfo.audioFmt
AudioFormat audioFmt
The audio properties of the media file.
Definition: TeamTalk.cs:1661
BearWare.MediaFileInfo.videoFmt
VideoFormat videoFmt
The video properties of the media file.
Definition: TeamTalk.cs:1663
BearWare.MediaFileInfo.szFileName
string szFileName
Name of file.
Definition: TeamTalk.cs:1659
BearWare.MediaFileInfo.uDurationMSec
uint uDurationMSec
The duration of the media file in miliseconds.
Definition: TeamTalk.cs:1665
BearWare.MediaFileInfo.nStatus
MediaFileStatus nStatus
Status of media file if it's being saved to disk.
Definition: TeamTalk.cs:1656
BearWare.MediaFilePlayback
Properties for initializing or updating a file for media streaming.
Definition: TeamTalk.cs:1679
BearWare.MediaFilePlayback.uOffsetMSec
uint uOffsetMSec
Offset in milliseconds in the media file where to start playback. Pass BearWare.TeamTalkBase....
Definition: TeamTalk.cs:1684
BearWare.MediaFilePlayback.audioPreprocessor
AudioPreprocessor audioPreprocessor
Option to activate audio preprocessor on local media file playback.
Definition: TeamTalk.cs:1688
BearWare.MediaFilePlayback.bPaused
bool bPaused
Start or pause media file playback.
Definition: TeamTalk.cs:1686
BearWare.OpusCodec
OPUS audio codec settings. For detailed information about the OPUS codec check out http://www....
Definition: TeamTalk.cs:1040
BearWare.OpusCodec.nFrameSizeMSec
int nFrameSizeMSec
OPUS supports 2.5, 5, 10, 20, 40, 60, 80, 100 and 120 msec. If nFrameSizeMSec is 0 then nFrameSizeMSe...
Definition: TeamTalk.cs:1078
BearWare.OpusCodec.bFEC
bool bFEC
Forward error correction. Corrects errors if there's packetloss.
Definition: TeamTalk.cs:1055
BearWare.OpusCodec.bVBR
bool bVBR
Enable variable bitrate.
Definition: TeamTalk.cs:1064
BearWare.OpusCodec.nComplexity
int nComplexity
Complexity of encoding (affects CPU usage). Value from 0-10.
Definition: TeamTalk.cs:1052
BearWare.OpusCodec.bDTX
bool bDTX
Discontinuous transmission. Enables "null" packets during silence.
Definition: TeamTalk.cs:1058
BearWare.OpusCodec.nSampleRate
int nSampleRate
The sample rate to use. Sample rate must be 8000, 12000, 16000, 24000 or 48000 Hz.
Definition: TeamTalk.cs:1043
BearWare.OpusCodec.nApplication
int nApplication
Application of encoded audio, VoIP or music.
Definition: TeamTalk.cs:1049
BearWare.OpusCodec.bVBRConstraint
bool bVBRConstraint
Enable constrained VBR. bVBR must be enabled to enable this.
Definition: TeamTalk.cs:1067
BearWare.OpusCodec.nTxIntervalMSec
int nTxIntervalMSec
Duration of audio before each transmission. Minimum is 2 msec. Recommended is 40 msec....
Definition: TeamTalk.cs:1074
BearWare.OpusCodec.nBitRate
int nBitRate
Bitrate for encoded audio. Should be between BearWare.OpusConstants.OPUS_MIN_BITRATE and BearWare....
Definition: TeamTalk.cs:1062
BearWare.OpusCodec.nChannels
int nChannels
Mono = 1 or stereo = 2.
Definition: TeamTalk.cs:1045
BearWare.OpusConstants
OPUS constants for BearWare.OpusCodec.
Definition: TeamTalk.cs:1083
BearWare.OpusConstants.DEFAULT_OPUS_FEC
const bool DEFAULT_OPUS_FEC
Definition: TeamTalk.cs:1112
BearWare.OpusConstants.DEFAULT_OPUS_COMPLEXITY
const int DEFAULT_OPUS_COMPLEXITY
Definition: TeamTalk.cs:1111
BearWare.OpusConstants.DEFAULT_OPUS_VBR
const bool DEFAULT_OPUS_VBR
Definition: TeamTalk.cs:1114
BearWare.OpusConstants.DEFAULT_OPUS_VBRCONSTRAINT
const bool DEFAULT_OPUS_VBRCONSTRAINT
Definition: TeamTalk.cs:1115
BearWare.OpusConstants.DEFAULT_OPUS_APPLICATION
const int DEFAULT_OPUS_APPLICATION
Definition: TeamTalk.cs:1108
BearWare.OpusConstants.OPUS_MIN_FRAMESIZE
const int OPUS_MIN_FRAMESIZE
The minimum frame size for OPUS codec. Checkout nFrameSizeMSec of BearWare.OpusCodec.
Definition: TeamTalk.cs:1099
BearWare.OpusConstants.DEFAULT_OPUS_CHANNELS
const int DEFAULT_OPUS_CHANNELS
Definition: TeamTalk.cs:1110
BearWare.OpusConstants.DEFAULT_OPUS_DTX
const bool DEFAULT_OPUS_DTX
Definition: TeamTalk.cs:1113
BearWare.OpusConstants.OPUS_MAX_BITRATE
const int OPUS_MAX_BITRATE
The maximum bitrate for OPUS codec. Checkout nBitRate of BearWare.OpusCodec.
Definition: TeamTalk.cs:1095
BearWare.OpusConstants.DEFAULT_OPUS_DELAY
const int DEFAULT_OPUS_DELAY
Definition: TeamTalk.cs:1117
BearWare.OpusConstants.OPUS_REALMAX_FRAMESIZE
const int OPUS_REALMAX_FRAMESIZE
The real maximum frame size for OPUS codec. Checkout nFrameSizeMSec of BearWare.OpusCodec....
Definition: TeamTalk.cs:1106
BearWare.OpusConstants.OPUS_MAX_FRAMESIZE
const int OPUS_MAX_FRAMESIZE
The maximum frame size for OPUS codec. Checkout nFrameSizeMSec of BearWare.OpusCodec.
Definition: TeamTalk.cs:1102
BearWare.OpusConstants.DEFAULT_OPUS_SAMPLERATE
const int DEFAULT_OPUS_SAMPLERATE
Definition: TeamTalk.cs:1109
BearWare.OpusConstants.OPUS_APPLICATION_AUDIO
const int OPUS_APPLICATION_AUDIO
Audio encoding is for music. This value should be set as nApplicaton in BearWare.OpusCodec.
Definition: TeamTalk.cs:1089
BearWare.OpusConstants.OPUS_MIN_BITRATE
const int OPUS_MIN_BITRATE
The minimum bitrate for OPUS codec. Checkout nBitRate of BearWare.OpusCodec.
Definition: TeamTalk.cs:1092
BearWare.OpusConstants.DEFAULT_OPUS_BITRATE
const int DEFAULT_OPUS_BITRATE
Definition: TeamTalk.cs:1116
BearWare.OpusConstants.OPUS_APPLICATION_VOIP
const int OPUS_APPLICATION_VOIP
Audio encoding is for VoIP. This value should be set as nApplicaton in BearWare.OpusCodec.
Definition: TeamTalk.cs:1086
BearWare.RemoteFile
A struct containing the properties of a file in a BearWare.Channel.
Definition: TeamTalk.cs:2723
BearWare.RemoteFile.nChannelID
int nChannelID
The ID of the channel where the file is located.
Definition: TeamTalk.cs:2725
BearWare.RemoteFile.nFileSize
long nFileSize
The size of the file.
Definition: TeamTalk.cs:2732
BearWare.RemoteFile.szUploadTime
string szUploadTime
Time when file was uploaded. Date/time is converted local time.
Definition: TeamTalk.cs:2739
BearWare.RemoteFile.szFileName
string szFileName
The name of the file.
Definition: TeamTalk.cs:2730
BearWare.RemoteFile.nFileID
int nFileID
The ID identifying the file.
Definition: TeamTalk.cs:2727
BearWare.RemoteFile.szUsername
string szUsername
Username of the person who uploaded the files.
Definition: TeamTalk.cs:2735
BearWare.ServerProperties
A struct containing the properties of the server's settings.
Definition: TeamTalk.cs:1816
BearWare.ServerProperties.nMaxMediaFileTxPerSecond
int nMaxMediaFileTxPerSecond
The maximum number of bytes per second which the server will allow for media file packets....
Definition: TeamTalk.cs:1855
BearWare.ServerProperties.nUserTimeout
int nUserTimeout
The number of seconds before a user who hasn't responded to keepalives will be kicked off the server.
Definition: TeamTalk.cs:1872
BearWare.ServerProperties.bAutoSave
bool bAutoSave
Whether the server automatically saves changes.
Definition: TeamTalk.cs:1865
BearWare.ServerProperties.szServerProtocolVersion
string szServerProtocolVersion
The version of the server's protocol.
Definition: TeamTalk.cs:1878
BearWare.ServerProperties.nMaxLoginsPerIPAddress
int nMaxLoginsPerIPAddress
The maximum number of users allowed to log in with the same IP-address. 0 means disabled.
Definition: TeamTalk.cs:1842
BearWare.ServerProperties.szAccessToken
string szAccessToken
A randomly generated 256 bit access token created by the server to identify the login session....
Definition: TeamTalk.cs:1892
BearWare.ServerProperties.nMaxDesktopTxPerSecond
int nMaxDesktopTxPerSecond
The maximum number of bytes per second which the server will allow for desktop packets....
Definition: TeamTalk.cs:1859
BearWare.ServerProperties.nUdpPort
int nUdpPort
The server's UDP port.
Definition: TeamTalk.cs:1869
BearWare.ServerProperties.nLoginDelayMSec
int nLoginDelayMSec
Number of msec before an IP-address can make another login attempt. If less than this amount then Tea...
Definition: TeamTalk.cs:1887
BearWare.ServerProperties.nMaxTotalTxPerSecond
int nMaxTotalTxPerSecond
The amount of bytes per second which the server will allow for packet forwarding. If this value is ex...
Definition: TeamTalk.cs:1863
BearWare.ServerProperties.szServerName
string szServerName
The server's name.
Definition: TeamTalk.cs:1819
BearWare.ServerProperties.nMaxLoginAttempts
int nMaxLoginAttempts
The maximum number of logins with wrong password before banning user's IP-address.
Definition: TeamTalk.cs:1839
BearWare.ServerProperties.szMOTD
string szMOTD
The message of the day. Read-only property. Use szMOTDRaw to update this property.
Definition: TeamTalk.cs:1823
BearWare.ServerProperties.szMOTDRaw
string szMOTDRaw
The message of the day including variables. The result of the szMOTDRaw string will be displayed in s...
Definition: TeamTalk.cs:1833
BearWare.ServerProperties.nMaxUsers
int nMaxUsers
The maximum number of users allowed on the server. A user with admin account can ignore this.
Definition: TeamTalk.cs:1836
BearWare.ServerProperties.nTcpPort
int nTcpPort
The server's TCP port.
Definition: TeamTalk.cs:1867
BearWare.ServerProperties.szServerVersion
string szServerVersion
The server version.
Definition: TeamTalk.cs:1875
BearWare.ServerProperties.nMaxVoiceTxPerSecond
int nMaxVoiceTxPerSecond
The maximum number of bytes per second which the server will allow for voice packets....
Definition: TeamTalk.cs:1846
BearWare.ServerProperties.nMaxVideoCaptureTxPerSecond
int nMaxVideoCaptureTxPerSecond
The maximum number of bytes per second which the server will allow for video input packets....
Definition: TeamTalk.cs:1851
BearWare.ServerStatistics
A struct containing the server's statistics, i.e. bandwidth usage and user activity.
Definition: TeamTalk.cs:1904
BearWare.ServerStatistics.nMediaFileBytesTX
long nMediaFileBytesTX
The number of bytes in media file packets sent from the server to clients.
Definition: TeamTalk.cs:1925
BearWare.ServerStatistics.nVideoCaptureBytesTX
long nVideoCaptureBytesTX
The number of bytes in video packets sent from the server to clients.
Definition: TeamTalk.cs:1919
BearWare.ServerStatistics.nFilesRx
long nFilesRx
The number of bytes for file transmission received by the server.
Definition: TeamTalk.cs:1944
BearWare.ServerStatistics.nDesktopBytesTX
long nDesktopBytesTX
The number of bytes in desktop packets sent from the server to clients.
Definition: TeamTalk.cs:1931
BearWare.ServerStatistics.nFilesTx
long nFilesTx
The number of bytes for file transmission transmitted from the server.
Definition: TeamTalk.cs:1941
BearWare.ServerStatistics.nUptimeMSec
long nUptimeMSec
The server's uptime in msec.
Definition: TeamTalk.cs:1946
BearWare.ServerStatistics.nVoiceBytesRX
long nVoiceBytesRX
The number of bytes in audio packets received by the server from clients.
Definition: TeamTalk.cs:1916
BearWare.ServerStatistics.nUsersServed
int nUsersServed
The number of users who have logged on to the server.
Definition: TeamTalk.cs:1936
BearWare.ServerStatistics.nTotalBytesRX
long nTotalBytesRX
The number of bytes received by the server from clients.
Definition: TeamTalk.cs:1910
BearWare.ServerStatistics.nTotalBytesTX
long nTotalBytesTX
The number of bytes sent from the server to clients.
Definition: TeamTalk.cs:1907
BearWare.ServerStatistics.nVideoCaptureBytesRX
long nVideoCaptureBytesRX
The number of bytes in video packets received by the server from clients.
Definition: TeamTalk.cs:1922
BearWare.ServerStatistics.nDesktopBytesRX
long nDesktopBytesRX
The number of bytes in desktop packets received by the server from clients.
Definition: TeamTalk.cs:1934
BearWare.ServerStatistics.nVoiceBytesTX
long nVoiceBytesTX
The number of bytes in audio packets sent from the server to clients.
Definition: TeamTalk.cs:1913
BearWare.ServerStatistics.nMediaFileBytesRX
long nMediaFileBytesRX
The number of bytes in media file packets received by the server from clients.
Definition: TeamTalk.cs:1928
BearWare.ServerStatistics.nUsersPeak
int nUsersPeak
The highest numbers of users online.
Definition: TeamTalk.cs:1938
BearWare.ShareWindow
A struct which describes the properties of a window which can be shared.
Definition: TeamTalk.cs:9077
BearWare.ShareWindow.hWnd
IntPtr hWnd
The Windows handle of the window.
Definition: TeamTalk.cs:9079
BearWare.ShareWindow.szWindowTitle
string szWindowTitle
The title of the window.
Definition: TeamTalk.cs:9090
BearWare.ShareWindow.nWndX
int nWndX
X coordinate of the window relative to the Windows desktop.
Definition: TeamTalk.cs:9081
BearWare.ShareWindow.nHeight
int nHeight
The height in pixels of the window.
Definition: TeamTalk.cs:9087
BearWare.ShareWindow.nWndY
int nWndY
Y coordinate of the window relative to the Windows desktop.
Definition: TeamTalk.cs:9083
BearWare.ShareWindow.nWidth
int nWidth
The width in pixels of the window.
Definition: TeamTalk.cs:9085
BearWare.SoundDeviceConstants
IDs for sound devices.
Definition: TeamTalk.cs:334
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM
const int TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM
Sound device ID for Android OpenSL ES voice communication mode. This device uses the OpenSL ES' Andro...
Definition: TeamTalk.cs:353
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT
const int TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT
Sound device ID for Android OpenSL ES default audio device. Note that this sound device may also exis...
Definition: TeamTalk.cs:348
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL
const int TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL
Sound device ID for virtual TeamTalk sound device.
Definition: TeamTalk.cs:362
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_MASK
const uint TT_SOUNDDEVICE_ID_MASK
Extract sound device ID of nDeviceID in BearWare.SoundDevice by and'ing this value.
Definition: TeamTalk.cs:384
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO
const int TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO
Sound device ID for iOS AudioUnit subtype Voice-Processing I/O Unit. This sound device ID include the...
Definition: TeamTalk.cs:343
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_SHARED_FLAG
const uint TT_SOUNDDEVICE_ID_SHARED_FLAG
Flag/bit in nDeviceID telling if the BearWare.SoundDevice is a shared version of an existing sound de...
Definition: TeamTalk.cs:378
BearWare.SoundDeviceConstants.TT_SOUNDDEVICE_ID_REMOTEIO
const int TT_SOUNDDEVICE_ID_REMOTEIO
Sound device ID for iOS AudioUnit subtype Remote I/O Unit.
Definition: TeamTalk.cs:337
BearWare.SoundDeviceEffects
Set up audio effects supported by the sound device.
Definition: TeamTalk.cs:279
BearWare.SoundDeviceEffects.bEnableEchoCancellation
bool bEnableEchoCancellation
Enable echo cancellation.
Definition: TeamTalk.cs:328
BearWare.SoundDeviceEffects.bEnableAGC
bool bEnableAGC
Enable Automatic Gain Control.
Definition: TeamTalk.cs:295
BearWare.SoundDeviceEffects.bEnableDenoise
bool bEnableDenoise
Enable noise suppression.
Definition: TeamTalk.cs:312
BearWare.SoundDevice
A struct containing the properties of a sound device for either playback or recording.
Definition: TeamTalk.cs:207
BearWare.SoundDevice.nWaveDeviceID
int nWaveDeviceID
A Windows specific ID to the sound device.
Definition: TeamTalk.cs:241
BearWare.SoundDevice.szDeviceID
string szDeviceID
An identifier uniquely identifying the sound device even when new sound devices are being added and r...
Definition: TeamTalk.cs:224
BearWare.SoundDevice.bSupports3D
bool bSupports3D
Whether the sound device supports 3D-sound effects.
Definition: TeamTalk.cs:244
BearWare.SoundDevice.uSoundDeviceFeatures
SoundDeviceFeature uSoundDeviceFeatures
Additional features available for this sound device. The sound device features can be used to enable ...
Definition: TeamTalk.cs:266
BearWare.SoundDevice.inputSampleRates
int[] inputSampleRates
Supported sample rates by device for recording. A zero value terminates the list of supported sample ...
Definition: TeamTalk.cs:253
BearWare.SoundDevice.nDefaultSampleRate
int nDefaultSampleRate
The default sample rate for the sound device.
Definition: TeamTalk.cs:260
BearWare.SoundDevice.nMaxInputChannels
int nMaxInputChannels
The maximum number of input channels.
Definition: TeamTalk.cs:246
BearWare.SoundDevice.nSoundSystem
SoundSystem nSoundSystem
The sound system used by the sound device.
Definition: TeamTalk.cs:215
BearWare.SoundDevice.nDeviceID
int nDeviceID
The ID of the sound device. Used for passing to TeamTalkBase.InitSoundInputDevice() and TeamTalkBase....
Definition: TeamTalk.cs:213
BearWare.SoundDevice.szDeviceName
string szDeviceName
The name of the sound device.
Definition: TeamTalk.cs:218
BearWare.SoundDevice.outputSampleRates
int[] outputSampleRates
Supported sample rates by device for playback. A zero value terminates the list of supported sample r...
Definition: TeamTalk.cs:258
BearWare.SoundDevice.nMaxOutputChannels
int nMaxOutputChannels
The maximum number of output channels.
Definition: TeamTalk.cs:248
BearWare.SoundLevel
An enum encapsulation the minimum, maximum and default sound levels for input and output sound device...
Definition: TeamTalk.cs:391
BearWare.SoundLevel.SOUND_VU_MAX
const int SOUND_VU_MAX
The maximum value of recorded audio.
Definition: TeamTalk.cs:397
BearWare.SoundLevel.SOUND_VOLUME_MAX
const int SOUND_VOLUME_MAX
The maximum volume.
Definition: TeamTalk.cs:411
BearWare.SoundLevel.SOUND_GAIN_MIN
const int SOUND_GAIN_MIN
The minimum gain level (since it's zero it means silence).
Definition: TeamTalk.cs:453
BearWare.SoundLevel.SOUND_VOLUME_MIN
const int SOUND_VOLUME_MIN
The minimum volume.
Definition: TeamTalk.cs:425
BearWare.SoundLevel.SOUND_VU_MIN
const int SOUND_VU_MIN
The minimum value of recorded audio.
Definition: TeamTalk.cs:403
BearWare.SoundLevel.SOUND_GAIN_DEFAULT
const int SOUND_GAIN_DEFAULT
The default gain level.
Definition: TeamTalk.cs:444
BearWare.SoundLevel.SOUND_GAIN_MAX
const int SOUND_GAIN_MAX
The maximum gain level.
Definition: TeamTalk.cs:434
BearWare.SoundLevel.SOUND_VOLUME_DEFAULT
const int SOUND_VOLUME_DEFAULT
The default volume. Use this whenever possible since it requires the least amount of CPU usage.
Definition: TeamTalk.cs:419
BearWare.SpeexCodec
Speex audio codec settings for Constant Bitrate mode (CBR).
Definition: TeamTalk.cs:907
BearWare.SpeexCodec.nQuality
int nQuality
A value from 1-10. As of DLL version 4.2 also 0 is supported.
Definition: TeamTalk.cs:915
BearWare.SpeexCodec.nTxIntervalMSec
int nTxIntervalMSec
Milliseconds of audio data before each transmission.
Definition: TeamTalk.cs:926
BearWare.SpeexCodec.nBandmode
int nBandmode
Set to 0 for 8 KHz (narrow band), set to 1 for 16 KHz (wide band), set to 2 for 32 KHz (ultra-wide ba...
Definition: TeamTalk.cs:911
BearWare.SpeexCodec.bStereoPlayback
bool bStereoPlayback
Playback should be done in stereo. Doing so will disable 3d-positioning.
Definition: TeamTalk.cs:933
BearWare.SpeexConstants
Speex constants for BearWare.SpeexCodec and BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:984
BearWare.SpeexConstants.SPEEX_BANDMODE_UWIDE
const int SPEEX_BANDMODE_UWIDE
Use BearWare.SpeexCodec or BearWare.SpeexVBRCodec as 32 KHz.
Definition: TeamTalk.cs:990
BearWare.SpeexConstants.DEFAULT_SPEEX_DTX
const bool DEFAULT_SPEEX_DTX
Default Speex DTX for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1033
BearWare.SpeexConstants.SPEEX_NB_MAX_BITRATE
const int SPEEX_NB_MAX_BITRATE
The maximum bitrate for Speex codec in 8 KHz mode, i.e. quality set to 10.
Definition: TeamTalk.cs:1000
BearWare.SpeexConstants.SPEEX_QUALITY_MAX
const int SPEEX_QUALITY_MAX
The maximum quality for Speex codec.
Definition: TeamTalk.cs:994
BearWare.SpeexConstants.SPEEX_QUALITY_MIN
const int SPEEX_QUALITY_MIN
The minimum quality for Speex codec.
Definition: TeamTalk.cs:992
BearWare.SpeexConstants.SPEEX_WB_MAX_BITRATE
const int SPEEX_WB_MAX_BITRATE
The maximum bitrate for Speex codec in 16 KHz mode, i.e. quality set to 10.
Definition: TeamTalk.cs:1006
BearWare.SpeexConstants.SPEEX_WB_MIN_BITRATE
const int SPEEX_WB_MIN_BITRATE
The minimum bitrate for Speex codec in 16 KHz mode, i.e. quality set to 0.
Definition: TeamTalk.cs:1003
BearWare.SpeexConstants.DEFAULT_SPEEX_DELAY
const int DEFAULT_SPEEX_DELAY
Default Speex delay for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1021
BearWare.SpeexConstants.SPEEX_BANDMODE_NARROW
const int SPEEX_BANDMODE_NARROW
Use BearWare.SpeexCodec or BearWare.SpeexVBRCodec as 8 KHz.
Definition: TeamTalk.cs:986
BearWare.SpeexConstants.SPEEX_UWB_MIN_BITRATE
const int SPEEX_UWB_MIN_BITRATE
The minimum bitrate for Speex codec in 32 KHz mode, i.e. quality set to 0.
Definition: TeamTalk.cs:1009
BearWare.SpeexConstants.DEFAULT_SPEEX_BITRATE
const int DEFAULT_SPEEX_BITRATE
Default Speex bitrate for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1027
BearWare.SpeexConstants.SPEEX_BANDMODE_WIDE
const int SPEEX_BANDMODE_WIDE
Use BearWare.SpeexCodec or BearWare.SpeexVBRCodec as 16 KHz.
Definition: TeamTalk.cs:988
BearWare.SpeexConstants.SPEEX_UWB_MAX_BITRATE
const int SPEEX_UWB_MAX_BITRATE
The maximum bitrate for Speex codec in 32 KHz mode, i.e. quality set to 10.
Definition: TeamTalk.cs:1012
BearWare.SpeexConstants.DEFAULT_SPEEX_MAXBITRATE
const int DEFAULT_SPEEX_MAXBITRATE
Default Speex max bitrate for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1030
BearWare.SpeexConstants.DEFAULT_SPEEX_BANDMODE
const int DEFAULT_SPEEX_BANDMODE
Default Speex bandmode for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1015
BearWare.SpeexConstants.DEFAULT_SPEEX_SIMSTEREO
const bool DEFAULT_SPEEX_SIMSTEREO
Default Speex stereo playback for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1024
BearWare.SpeexConstants.DEFAULT_SPEEX_QUALITY
const int DEFAULT_SPEEX_QUALITY
Default Speex quality for BearWare.SpeexCodec or BearWare.SpeexVBRCodec.
Definition: TeamTalk.cs:1018
BearWare.SpeexConstants.SPEEX_NB_MIN_BITRATE
const int SPEEX_NB_MIN_BITRATE
The minimum bitrate for Speex codec in 8 KHz mode, i.e. quality set to 0.
Definition: TeamTalk.cs:997
BearWare.SpeexDSPConstants
Default values for BearWare.SpeexDSP.
Definition: TeamTalk.cs:1487
BearWare.SpeexDSPConstants.DEFAULT_DENOISE_SUPPRESS
const int DEFAULT_DENOISE_SUPPRESS
Definition: TeamTalk.cs:1494
BearWare.SpeexDSPConstants.DEFAULT_ECHO_SUPPRESS_ACTIVE
const int DEFAULT_ECHO_SUPPRESS_ACTIVE
Definition: TeamTalk.cs:1497
BearWare.SpeexDSPConstants.DEFAULT_AGC_ENABLE
const bool DEFAULT_AGC_ENABLE
Definition: TeamTalk.cs:1488
BearWare.SpeexDSPConstants.DEFAULT_ECHO_SUPPRESS
const int DEFAULT_ECHO_SUPPRESS
Definition: TeamTalk.cs:1496
BearWare.SpeexDSPConstants.DEFAULT_AGC_DEC_MAXDB
const int DEFAULT_AGC_DEC_MAXDB
Definition: TeamTalk.cs:1491
BearWare.SpeexDSPConstants.DEFAULT_ECHO_ENABLE
const bool DEFAULT_ECHO_ENABLE
Definition: TeamTalk.cs:1495
BearWare.SpeexDSPConstants.DEFAULT_DENOISE_ENABLE
const bool DEFAULT_DENOISE_ENABLE
Definition: TeamTalk.cs:1493
BearWare.SpeexDSPConstants.DEFAULT_AGC_INC_MAXDB
const int DEFAULT_AGC_INC_MAXDB
Definition: TeamTalk.cs:1490
BearWare.SpeexDSPConstants.DEFAULT_AGC_GAINMAXDB
const int DEFAULT_AGC_GAINMAXDB
Definition: TeamTalk.cs:1492
BearWare.SpeexDSPConstants.DEFAULT_AGC_GAINLEVEL
const int DEFAULT_AGC_GAINLEVEL
Definition: TeamTalk.cs:1489
BearWare.SpeexDSP
Audio configuration specifying how recorded audio from sound input device should be preprocessed befo...
Definition: TeamTalk.cs:1139
BearWare.SpeexDSP.SpeexDSP
SpeexDSP(bool set_defaults)
Definition: TeamTalk.cs:1209
BearWare.SpeexDSP.nMaxDecDBSec
int nMaxDecDBSec
Used so volume should not be attenuated too quickly (maximal gain decrease in dB/second)....
Definition: TeamTalk.cs:1163
BearWare.SpeexDSP.bEnableDenoise
bool bEnableDenoise
Whether clients who join the channel should automatically enable denoising.
Definition: TeamTalk.cs:1172
BearWare.SpeexDSP.bEnableAGC
bool bEnableAGC
Whether clients who join a BearWare.Channel should enable AGC with the settings specified nGainLevel,...
Definition: TeamTalk.cs:1148
BearWare.SpeexDSP.nMaxIncDBSec
int nMaxIncDBSec
Used so volume should not be amplified too quickly (maximal gain increase in dB/second)....
Definition: TeamTalk.cs:1157
BearWare.SpeexDSP.nGainLevel
int nGainLevel
A value from 0 to 32768. Default is 8000. Value is ignored if bEnableAGC is FALSE.
Definition: TeamTalk.cs:1152
BearWare.SpeexDSP.nEchoSuppressActive
int nEchoSuppressActive
Set maximum attenuation of the residual echo in dB when near end is active (negative number)....
Definition: TeamTalk.cs:1207
BearWare.SpeexDSP.nEchoSuppress
int nEchoSuppress
Set maximum attenuation of the residual echo in dB (negative number). Default is -40....
Definition: TeamTalk.cs:1202
BearWare.SpeexDSP.nMaxGainDB
int nMaxGainDB
Ensure volume doesn't become too loud (maximal gain in dB). Default is 30. Value is ignored if bEnabl...
Definition: TeamTalk.cs:1168
BearWare.SpeexDSP.bEnableEchoCancellation
bool bEnableEchoCancellation
Speex DSP is used for specifying how recorded audio from a sound input device should be preprocessed ...
Definition: TeamTalk.cs:1197
BearWare.SpeexDSP.nMaxNoiseSuppressDB
int nMaxNoiseSuppressDB
Maximum attenuation of the noise in dB. Negative value! Default value is -30. Value is ignored if bEn...
Definition: TeamTalk.cs:1177
BearWare.SpeexVBRCodec
Speex audio codec settings for Variable Bitrate mode (VBR).
Definition: TeamTalk.cs:943
BearWare.SpeexVBRCodec.nTxIntervalMSec
int nTxIntervalMSec
Milliseconds of audio data before each transmission.
Definition: TeamTalk.cs:973
BearWare.SpeexVBRCodec.nMaxBitRate
int nMaxBitRate
The maximum bitrate at which the audio codec is allowed to output audio. Set to zero if it should be ...
Definition: TeamTalk.cs:960
BearWare.SpeexVBRCodec.bDTX
bool bDTX
Enable/disable discontinuous transmission. When enabled Speex will ignore silence,...
Definition: TeamTalk.cs:964
BearWare.SpeexVBRCodec.nQuality
int nQuality
A value from 0-10. If nBitRate is non-zero it will override this value.
Definition: TeamTalk.cs:949
BearWare.SpeexVBRCodec.nBandmode
int nBandmode
Set to 0 for 8 KHz (narrow band), set to 1 for 16 KHz (wide band), set to 2 for 32 KHz (ultra-wide ba...
Definition: TeamTalk.cs:946
BearWare.SpeexVBRCodec.nBitRate
int nBitRate
The bitrate at which the audio codec should output encoded audio data. Dividing it by 8 gives roughly...
Definition: TeamTalk.cs:956
BearWare.SpeexVBRCodec.bStereoPlayback
bool bStereoPlayback
Playback should be done in stereo. Doing so will disable 3d-positioning.
Definition: TeamTalk.cs:979
BearWare.TTAudioPreprocessor
Use TeamTalk's internal audio preprocessor for gain audio. Same as used for TeamTalkBase....
Definition: TeamTalk.cs:1248
BearWare.TTAudioPreprocessor.bMuteLeftSpeaker
bool bMuteLeftSpeaker
Whether to mute left speaker in stereo playback.
Definition: TeamTalk.cs:1254
BearWare.TTAudioPreprocessor.bMuteRightSpeaker
bool bMuteRightSpeaker
Whether to mute right speaker in stereo playback.
Definition: TeamTalk.cs:1256
BearWare.TTAudioPreprocessor.nGainLevel
int nGainLevel
Gain level between BearWare.SoundLevel.SOUND_GAIN_MIN and BearWare.SoundLevel.SOUND_GAIN_MAX....
Definition: TeamTalk.cs:1252
BearWare.TTMessage
A struct containing the properties of an event.
Definition: TeamTalk.cs:3882
BearWare.TTMessage.uReserved
uint uReserved
Reserved. To preserve alignment.
Definition: TeamTalk.cs:3890
BearWare.TTMessage.nSource
int nSource
The source of the event depends on wmMsg.
Definition: TeamTalk.cs:3886
BearWare.TTMessage.nClientEvent
ClientEvent nClientEvent
The event's message number.
Definition: TeamTalk.cs:3884
BearWare.TTMessage.ttType
TTType ttType
Specifies which member to access in the union.
Definition: TeamTalk.cs:3888
BearWare.TTMessage.DataToObject
object DataToObject()
Definition: TeamTalk.cs:3895
BearWare.TTMessage.data
byte[] data
Definition: TeamTalk.cs:3892
BearWare.TextMessage
A struct containing the properties of a text message sent by a user.
Definition: TeamTalk.cs:2434
BearWare.TextMessage.nChannelID
int nChannelID
Set to zero if nMsgType is TextMsgType TextMsgType.MSGTYPE_USER or TextMsgType TextMsgType....
Definition: TeamTalk.cs:2446
BearWare.TextMessage.nToUserID
int nToUserID
Set to zero if channel message.
Definition: TeamTalk.cs:2443
BearWare.TextMessage.szMessage
string szMessage
The actual text message. The message can be multi-line (include EOL)
Definition: TeamTalk.cs:2450
BearWare.TextMessage.nFromUserID
int nFromUserID
Will be set automatically on outgoing message.
Definition: TeamTalk.cs:2438
BearWare.TextMessage.szFromUsername
string szFromUsername
The originators username.
Definition: TeamTalk.cs:2441
BearWare.TextMessage.nMsgType
TextMsgType nMsgType
The type of text message.
Definition: TeamTalk.cs:2436
BearWare.UnionData
Definition: TeamTalk.cs:3939
BearWare.UnionData.filetransfer
FileTransfer filetransfer
Definition: TeamTalk.cs:3947
BearWare.UnionData.user
User user
Definition: TeamTalk.cs:3957
BearWare.UnionData.clienterrormsg
ClientErrorMsg clienterrormsg
Definition: TeamTalk.cs:3941
BearWare.UnionData.desktopinput
DesktopInput desktopinput
Definition: TeamTalk.cs:3945
BearWare.UnionData.textmessage
TextMessage textmessage
Definition: TeamTalk.cs:3955
BearWare.UnionData.bActive
bool bActive
Definition: TeamTalk.cs:3961
BearWare.UnionData.nBytesRemain
int nBytesRemain
Definition: TeamTalk.cs:3963
BearWare.UnionData.serverproperties
ServerProperties serverproperties
Definition: TeamTalk.cs:3953
BearWare.UnionData.nPayloadSize
int nPayloadSize
Definition: TeamTalk.cs:3967
BearWare.UnionData.channel
Channel channel
Definition: TeamTalk.cs:3943
BearWare.UnionData.nStreamID
int nStreamID
Definition: TeamTalk.cs:3965
BearWare.UnionData.useraccount
UserAccount useraccount
Definition: TeamTalk.cs:3959
BearWare.UnionData.mediafileinfo
MediaFileInfo mediafileinfo
Definition: TeamTalk.cs:3949
BearWare.UnionData.remotefile
RemoteFile remotefile
Definition: TeamTalk.cs:3951
BearWare.UserAccount
A struct containing the properties of a user account.
Definition: TeamTalk.cs:2045
BearWare.UserAccount.szNote
string szNote
Additional notes about this user.
Definition: TeamTalk.cs:2064
BearWare.UserAccount.nUserData
int nUserData
A user data field which can be used for additional information. The nUserData field of the BearWare....
Definition: TeamTalk.cs:2061
BearWare.UserAccount.szInitChannel
string szInitChannel
User should (manually) join this channel after login. If an initial channel is specified in the user'...
Definition: TeamTalk.cs:2070
BearWare.UserAccount.uUserType
UserType uUserType
A bitmask of the type of user based on UserType.
Definition: TeamTalk.cs:2053
BearWare.UserAccount.szPassword
string szPassword
The account's password.
Definition: TeamTalk.cs:2051
BearWare.UserAccount.uUserRights
UserRight uUserRights
A bitmask based on UserRight which specifies the rights the user have who logs onto the server....
Definition: TeamTalk.cs:2057
BearWare.UserAccount.szLastModified
string szLastModified
Timestamp of last modification of user account. Date/time is converted local time.
Definition: TeamTalk.cs:2088
BearWare.UserAccount.autoOperatorChannels
int[] autoOperatorChannels
Channels where this user will automatically become channel operator when joining. The channels must b...
Definition: TeamTalk.cs:2075
BearWare.UserAccount.abusePrevent
AbusePrevention abusePrevent
Properties which can be set to prevent abuse of a server, e.g. limit number of commands issued.
Definition: TeamTalk.cs:2084
BearWare.UserAccount.szUsername
string szUsername
The account's username.
Definition: TeamTalk.cs:2048
BearWare.UserAccount.nAudioCodecBpsLimit
int nAudioCodecBpsLimit
Bandwidth restriction for audio codecs created by this user. This value will hold the highest bitrate...
Definition: TeamTalk.cs:2079
BearWare.User
A struct containing the properties of a user.
Definition: TeamTalk.cs:2226
BearWare.User.nVolumeVoice
int nVolumeVoice
The user's voice volume level. Note that it's a virtual volume which is being set since the master vo...
Definition: TeamTalk.cs:2302
BearWare.User.nStoppedDelayMediaFile
int nStoppedDelayMediaFile
The delay of when a user should no longer be considered playing audio of a media file.
Definition: TeamTalk.cs:2316
BearWare.User.nChannelID
int nChannelID
The channel which the user is currently participating in. 0 if none. This value can change as a resul...
Definition: TeamTalk.cs:2260
BearWare.User.szStatusMsg
string szStatusMsg
The user's current status message. Invoke TeamTalkBase.DoChangeStatus() to change this value....
Definition: TeamTalk.cs:2289
BearWare.User.nActiveAdaptiveDelayMSec
int nActiveAdaptiveDelayMSec
The currently active adaptive jitter delay for received voice streams for this user.
Definition: TeamTalk.cs:2352
BearWare.User.szUsername
string szUsername
The szUsername of the user's BearWare.UserAccount. A user account is created by calling TeamTalkBase....
Definition: TeamTalk.cs:2236
BearWare.User.nStoppedDelayVoice
int nStoppedDelayVoice
The delay of when a user should no longer be considered as talking.
Definition: TeamTalk.cs:2312
BearWare.User.nVolumeMediaFile
int nVolumeMediaFile
The user's voice volume level. Note that it's a virtual volume which is being set since the master vo...
Definition: TeamTalk.cs:2308
BearWare.User.stereoPlaybackMediaFile
bool[] stereoPlaybackMediaFile
Check what speaker a user is outputting to. If index 0 is TRUE then left speaker is playing....
Definition: TeamTalk.cs:2340
BearWare.User.uPeerSubscriptions
Subscription uPeerSubscriptions
A bitmask of what this user subscribes to from local client instance. Invoking TeamTalkBase....
Definition: TeamTalk.cs:2272
BearWare.User.szIPAddress
string szIPAddress
The user's IP-address. This value is set by the server.
Definition: TeamTalk.cs:2248
BearWare.User.nUserID
int nUserID
The user's ID. A value from 1 - BearWare.TeamTalkBase.TT_USERID_MAX. This property is set by the serv...
Definition: TeamTalk.cs:2230
BearWare.User.szMediaStorageDir
string szMediaStorageDir
Store audio received from this user to this folder.
Definition: TeamTalk.cs:2296
BearWare.User.uVersion
uint uVersion
The user's client version. This property is set by the server and will not change after login....
Definition: TeamTalk.cs:2254
BearWare.User.szClientName
string szClientName
The name of the client application which the user is using. This is the value passed as szClientName ...
Definition: TeamTalk.cs:2357
BearWare.User.nBufferMSecVoice
int nBufferMSecVoice
The size of the buffer (in msec) to hold voice content.
Definition: TeamTalk.cs:2344
BearWare.User.soundPositionVoice
float[] soundPositionVoice
User's position when using 3D-sound (DirectSound option). Index 0 is x-axis, index 1 is y-axis and in...
Definition: TeamTalk.cs:2322
BearWare.User.uUserState
UserState uUserState
A bitmask of the user's current state, e.g. talking, muted, etc.
Definition: TeamTalk.cs:2292
BearWare.User.uUserType
UserType uUserType
The uUserType of the user's BearWare.UserAccount. This property is set by the server and will not cha...
Definition: TeamTalk.cs:2245
BearWare.User.nStatusMode
int nStatusMode
The user's current status mode. Invoke TeamTalkBase.DoChangeStatus() to change this value....
Definition: TeamTalk.cs:2283
BearWare.User.szNickname
string szNickname
The user's nickname. Invoking TeamTalkBase.DoChangeNickname() changes this value. Event ClientEvent....
Definition: TeamTalk.cs:2278
BearWare.User.soundPositionMediaFile
float[] soundPositionMediaFile
User's position when using 3D-sound (DirectSound option). Index 0 is x-axis, index 1 is y-axis and in...
Definition: TeamTalk.cs:2328
BearWare.User.stereoPlaybackVoice
bool[] stereoPlaybackVoice
Check what speaker a user is outputting to. If index 0 is TRUE then left speaker is playing....
Definition: TeamTalk.cs:2334
BearWare.User.nUserData
int nUserData
The nUserData of the user's BearWare.UserAccount. This field can be use to denote e....
Definition: TeamTalk.cs:2241
BearWare.User.uLocalSubscriptions
Subscription uLocalSubscriptions
A bitmask of what the local user subscribes to from this user. Invoking TeamTalkBase....
Definition: TeamTalk.cs:2266
BearWare.User.nBufferMSecMediaFile
int nBufferMSecMediaFile
The size of the buffer (in msec) to hold media file content.
Definition: TeamTalk.cs:2348
BearWare.UserStatistics
Packet reception and data statistics for a user.
Definition: TeamTalk.cs:2366
BearWare.UserStatistics.nMediaFileVideoPacketsRecv
long nMediaFileVideoPacketsRecv
Number of media file video packets received from user. A video frame can consist of several video pac...
Definition: TeamTalk.cs:2388
BearWare.UserStatistics.nVoicePacketsLost
long nVoicePacketsLost
Number of voice packets lost from user.
Definition: TeamTalk.cs:2370
BearWare.UserStatistics.nMediaFileAudioPacketsLost
long nMediaFileAudioPacketsLost
Number of media file audio packets lost from user.
Definition: TeamTalk.cs:2385
BearWare.UserStatistics.nVideoCaptureFramesLost
long nVideoCaptureFramesLost
Video frames which couldn't be shown because packets were lost.
Definition: TeamTalk.cs:2378
BearWare.UserStatistics.nMediaFileVideoFramesLost
long nMediaFileVideoFramesLost
Media file video frames which couldn't be shown because packets were lost.
Definition: TeamTalk.cs:2393
BearWare.UserStatistics.nMediaFileVideoFramesDropped
long nMediaFileVideoFramesDropped
Number of media file video frames dropped because user application didn't retrieve video frames in ti...
Definition: TeamTalk.cs:2396
BearWare.UserStatistics.nVideoCaptureFramesDropped
long nVideoCaptureFramesDropped
Number of video frames dropped because user application didn't retrieve video frames in time.
Definition: TeamTalk.cs:2381
BearWare.UserStatistics.nVideoCaptureFramesRecv
long nVideoCaptureFramesRecv
Number of video frames received from user.
Definition: TeamTalk.cs:2375
BearWare.UserStatistics.nMediaFileVideoFramesRecv
long nMediaFileVideoFramesRecv
Number of media file video frames received from user.
Definition: TeamTalk.cs:2390
BearWare.UserStatistics.nVoicePacketsRecv
long nVoicePacketsRecv
Number of voice packets received from user.
Definition: TeamTalk.cs:2368
BearWare.UserStatistics.nMediaFileAudioPacketsRecv
long nMediaFileAudioPacketsRecv
Number of media file audio packets received from user.
Definition: TeamTalk.cs:2383
BearWare.UserStatistics.nVideoCapturePacketsRecv
long nVideoCapturePacketsRecv
Number of video packets received from user. A video frame can consist of several video packets.
Definition: TeamTalk.cs:2373
BearWare.VideoCaptureDevice
A struct containing the properties of a video capture device.
Definition: TeamTalk.cs:685
BearWare.VideoCaptureDevice.szCaptureAPI
string szCaptureAPI
The name of the API used to capture video.
Definition: TeamTalk.cs:705
BearWare.VideoCaptureDevice.nVideoFormatsCount
int nVideoFormatsCount
The number of capture formats available in captureFormats array.
Definition: TeamTalk.cs:711
BearWare.VideoCaptureDevice.videoFormats
VideoFormat[] videoFormats
The supported capture formats.
Definition: TeamTalk.cs:708
BearWare.VideoCaptureDevice.szDeviceID
string szDeviceID
A string identifying the device.
Definition: TeamTalk.cs:688
BearWare.VideoCaptureDevice.szDeviceName
string szDeviceName
The name of the capture device.
Definition: TeamTalk.cs:691
BearWare.VideoCodec
Struct used for specifying the video codec to use.
Definition: TeamTalk.cs:1632
BearWare.VideoCodec.nCodec
Codec nCodec
Specifies member holds the codec settings. So far there is only one video codec to choose from,...
Definition: TeamTalk.cs:1637
BearWare.VideoCodec.webm_vp8
WebMVP8Codec webm_vp8
Definition: TeamTalk.cs:1639
BearWare.VideoFormat
A struct containing the properties of a video capture format.
Definition: TeamTalk.cs:621
BearWare.VideoFormat.nFPS_Denominator
int nFPS_Denominator
The denominator of the video capture device's video format. Divinding nFPS_Numerator with nFPS_Denomi...
Definition: TeamTalk.cs:635
BearWare.VideoFormat.picFourCC
FourCC picFourCC
Picture format for capturing.
Definition: TeamTalk.cs:637
BearWare.VideoFormat.nHeight
int nHeight
The height in pixels of the video device supported video format.
Definition: TeamTalk.cs:627
BearWare.VideoFormat.nFPS_Numerator
int nFPS_Numerator
The numerator of the video capture device's video format. Divinding nFPS_Numerator with nFPS_Denomina...
Definition: TeamTalk.cs:631
BearWare.VideoFormat.nWidth
int nWidth
The width in pixels of the video device supported video format.
Definition: TeamTalk.cs:624
BearWare.VideoFrame
A RGB32 image where the pixels can be accessed directly in an allocated imageBuffer.
Definition: TeamTalk.cs:649
BearWare.VideoFrame.bKeyFrame
bool bKeyFrame
Whether the image acquired is a key-frame. If it is not a key-frame and there has been packet loss or...
Definition: TeamTalk.cs:666
BearWare.VideoFrame.nFrameBufferSize
int nFrameBufferSize
The size in bytes of the buffer allocate in frameBuffer.
Definition: TeamTalk.cs:671
BearWare.VideoFrame.nHeight
int nHeight
The height in pixels of the image contained in imageBuffer.
Definition: TeamTalk.cs:655
BearWare.VideoFrame.nStreamID
int nStreamID
A unique identifier for the frames which are part of the same video sequence. If the stream ID change...
Definition: TeamTalk.cs:661
BearWare.VideoFrame.frameBuffer
System.IntPtr frameBuffer
A buffer allocated internally by TeamTalkBase.
Definition: TeamTalk.cs:668
BearWare.VideoFrame.nWidth
int nWidth
The width in pixels of the image contained in frameBuffer.
Definition: TeamTalk.cs:652
BearWare.WebMVP8CodecConstants
Definition: TeamTalk.cs:1529
BearWare.WebMVP8CodecConstants.WEBM_VPX_DL_BEST_QUALITY
const int WEBM_VPX_DL_BEST_QUALITY
nEncodeDeadline value for best encoding.
Definition: TeamTalk.cs:1538
BearWare.WebMVP8CodecConstants.WEBM_VPX_DL_REALTIME
const int WEBM_VPX_DL_REALTIME
nEncodeDeadline value for fastest encoding.
Definition: TeamTalk.cs:1532
BearWare.WebMVP8CodecConstants.WEBM_VPX_DL_GOOD_QUALITY
const int WEBM_VPX_DL_GOOD_QUALITY
nEncodeDeadline value for good encoding.
Definition: TeamTalk.cs:1535
BearWare.WebMVP8Codec
WebM video codec settings.
Definition: TeamTalk.cs:1506
BearWare.WebMVP8Codec.nRcTargetBitrate
int nRcTargetBitrate
Same as rc_target_bitrate.
Definition: TeamTalk.cs:1509
BearWare.WebMVP8Codec.nEncodeDeadline
uint nEncodeDeadline
Time that should be spent on encoding a frame.
Definition: TeamTalk.cs:1525
BearWare.WebMVP8Codec.rc_target_bitrate
int rc_target_bitrate
Target bitrate in kbits/sec. This value must be greater than 0.
Definition: TeamTalk.cs:1516
BearWare.WebRTCAudioPreprocessor.EchoCanceller
Configuration of WebRTC's echo canceller. See also TT_SetSoundDeviceEffects()
Definition: TeamTalk.cs:1287
BearWare.WebRTCAudioPreprocessor.EchoCanceller.bEnable
bool bEnable
Enable WebRTC echo canceller. The WebRTC echo canceller requires sound input and output devices are i...
Definition: TeamTalk.cs:1293
BearWare.WebRTCAudioPreprocessor.GainController2.AdaptiveDigital
Configuration for fine tuning gain level.
Definition: TeamTalk.cs:1349
BearWare.WebRTCAudioPreprocessor.GainController2.AdaptiveDigital.fInitialSaturationMarginDB
float fInitialSaturationMarginDB
Definition: TeamTalk.cs:1354
BearWare.WebRTCAudioPreprocessor.GainController2.AdaptiveDigital.fMaxOutputNoiseLevelDBFS
float fMaxOutputNoiseLevelDBFS
Definition: TeamTalk.cs:1360
BearWare.WebRTCAudioPreprocessor.GainController2.AdaptiveDigital.bEnable
bool bEnable
Definition: TeamTalk.cs:1352
BearWare.WebRTCAudioPreprocessor.GainController2.AdaptiveDigital.fMaxGainChangeDBPerSecond
float fMaxGainChangeDBPerSecond
Definition: TeamTalk.cs:1358
BearWare.WebRTCAudioPreprocessor.GainController2.AdaptiveDigital.fExtraSaturationMarginDB
float fExtraSaturationMarginDB
Definition: TeamTalk.cs:1356
BearWare.WebRTCAudioPreprocessor.GainController2.FixedDigital
Gain level for AGC. Only active when bEnable is true.
Definition: TeamTalk.cs:1339
BearWare.WebRTCAudioPreprocessor.GainController2.FixedDigital.fGainDB
float fGainDB
Gain level in dB. Range: 0 <= x < 50. Default: 0.
Definition: TeamTalk.cs:1342
BearWare.WebRTCAudioPreprocessor.GainController2
Configuration of WebRTC's gain controller 2 for AGC.
Definition: TeamTalk.cs:1331
BearWare.WebRTCAudioPreprocessor.GainController2.adaptivedigital
AdaptiveDigital adaptivedigital
Definition: TeamTalk.cs:1362
BearWare.WebRTCAudioPreprocessor.GainController2.fixeddigital
FixedDigital fixeddigital
Definition: TeamTalk.cs:1344
BearWare.WebRTCAudioPreprocessor.GainController2.bEnable
bool bEnable
Enable WebRTC's fixed digital gain. WebRTC's automatic gain control (AGC)
Definition: TeamTalk.cs:1334
BearWare.WebRTCAudioPreprocessor.LevelEstimation
Configuration of WebRTC's level estimater.
Definition: TeamTalk.cs:1369
BearWare.WebRTCAudioPreprocessor.LevelEstimation.bEnable
bool bEnable
Enable level estimater. When enabled TeamTalkBase.GetSoundInputLevel() will return a value based on W...
Definition: TeamTalk.cs:1375
BearWare.WebRTCAudioPreprocessor.NoiseSuppression
Configuration of WebRTC's noise suppression. See also BearWare.SpeexDSP.
Definition: TeamTalk.cs:1301
BearWare.WebRTCAudioPreprocessor.NoiseSuppression.nLevel
int nLevel
Noise suppression level. 0 = Low, 1 = Moderate, 2 = High, 3 = VeryHigh. Default: 1.
Definition: TeamTalk.cs:1306
BearWare.WebRTCAudioPreprocessor.NoiseSuppression.bEnable
bool bEnable
Enable WebRTC noise suppression.
Definition: TeamTalk.cs:1303
BearWare.WebRTCAudioPreprocessor.Preamplifier
Configuration of WebRTC pre-amplifier.
Definition: TeamTalk.cs:1274
BearWare.WebRTCAudioPreprocessor.Preamplifier.bEnable
bool bEnable
Enable pre-amplifier. Replacement for TT_SetSoundInputGainLevel()
Definition: TeamTalk.cs:1277
BearWare.WebRTCAudioPreprocessor.Preamplifier.fFixedGainFactor
float fFixedGainFactor
Gain factor. Default: 1.
Definition: TeamTalk.cs:1279
BearWare.WebRTCAudioPreprocessor.VoiceDetection
Configuration of WebRTC's voice detection.
Definition: TeamTalk.cs:1313
BearWare.WebRTCAudioPreprocessor.VoiceDetection.bEnable
bool bEnable
Use WebRTC's voice detection to trigger BearWare.TeamTalkBase.OnVoiceActivation.
Definition: TeamTalk.cs:1323
BearWare.WebRTCAudioPreprocessor
WebRTC's audio preprocessor.
Definition: TeamTalk.cs:1270
BearWare.WebRTCAudioPreprocessor.gaincontroller2
GainController2 gaincontroller2
Definition: TeamTalk.cs:1364
BearWare.WebRTCAudioPreprocessor.echocanceller
EchoCanceller echocanceller
Definition: TeamTalk.cs:1295
BearWare.WebRTCAudioPreprocessor.voicedetection
VoiceDetection voicedetection
Definition: TeamTalk.cs:1325
BearWare.WebRTCAudioPreprocessor.preamplifier
Preamplifier preamplifier
Definition: TeamTalk.cs:1281
BearWare.WebRTCAudioPreprocessor.WebRTCAudioPreprocessor
WebRTCAudioPreprocessor(bool set_defaults)
Definition: TeamTalk.cs:1379
BearWare.WebRTCAudioPreprocessor.noisesuppression
NoiseSuppression noisesuppression
Definition: TeamTalk.cs:1308
BearWare.WebRTCAudioPreprocessor.levelestimation
LevelEstimation levelestimation
Definition: TeamTalk.cs:1377
BearWare.WebRTCConstants
Default values for BearWare.WebRTCAudioPreprocessor.
Definition: TeamTalk.cs:1432
BearWare.WebRTCConstants.DEFAULT_WEBRTC_EXTRA_SAT_MARGIN_DB
const float DEFAULT_WEBRTC_EXTRA_SAT_MARGIN_DB
Definition: TeamTalk.cs:1441
BearWare.WebRTCConstants.DEFAULT_WEBRTC_MAXGAIN_DBSEC
const float DEFAULT_WEBRTC_MAXGAIN_DBSEC
Definition: TeamTalk.cs:1442
BearWare.WebRTCConstants.DEFAULT_WEBRTC_PREAMPLIFIER_GAINFACTOR
const float DEFAULT_WEBRTC_PREAMPLIFIER_GAINFACTOR
Definition: TeamTalk.cs:1434
BearWare.WebRTCConstants.DEFAULT_WEBRTC_NOISESUPPRESS_ENABLE
const bool DEFAULT_WEBRTC_NOISESUPPRESS_ENABLE
Definition: TeamTalk.cs:1444
BearWare.WebRTCConstants.DEFAULT_WEBRTC_VAD_ENABLE
const bool DEFAULT_WEBRTC_VAD_ENABLE
Definition: TeamTalk.cs:1435
BearWare.WebRTCConstants.DEFAULT_WEBRTC_PREAMPLIFIER_ENABLE
const bool DEFAULT_WEBRTC_PREAMPLIFIER_ENABLE
Definition: TeamTalk.cs:1433
BearWare.WebRTCConstants.DEFAULT_WEBRTC_SAT_PROT_ENABLE
const bool DEFAULT_WEBRTC_SAT_PROT_ENABLE
Definition: TeamTalk.cs:1439
BearWare.WebRTCConstants.DEFAULT_WEBRTC_GAINCTL_ENABLE
const bool DEFAULT_WEBRTC_GAINCTL_ENABLE
Definition: TeamTalk.cs:1437
BearWare.WebRTCConstants.WEBRTC_GAINCONTROLLER2_FIXEDGAIN_MAX
const float WEBRTC_GAINCONTROLLER2_FIXEDGAIN_MAX
Definition: TeamTalk.cs:1447
BearWare.WebRTCConstants.DEFAULT_WEBRTC_GAINDB
const float DEFAULT_WEBRTC_GAINDB
Definition: TeamTalk.cs:1438
BearWare.WebRTCConstants.DEFAULT_WEBRTC_ECHO_CANCEL_ENABLE
const bool DEFAULT_WEBRTC_ECHO_CANCEL_ENABLE
Definition: TeamTalk.cs:1446
BearWare.WebRTCConstants.DEFAULT_WEBRTC_LEVELESTIMATION_ENABLE
const bool DEFAULT_WEBRTC_LEVELESTIMATION_ENABLE
Definition: TeamTalk.cs:1436
BearWare.WebRTCConstants.DEFAULT_WEBRTC_INIT_SAT_MARGIN_DB
const float DEFAULT_WEBRTC_INIT_SAT_MARGIN_DB
Definition: TeamTalk.cs:1440
BearWare.WebRTCConstants.DEFAULT_WEBRTC_MAX_OUT_NOISE
const float DEFAULT_WEBRTC_MAX_OUT_NOISE
Definition: TeamTalk.cs:1443
BearWare.WebRTCConstants.DEFAULT_WEBRTC_NOISESUPPRESS_LEVEL
const int DEFAULT_WEBRTC_NOISESUPPRESS_LEVEL
Definition: TeamTalk.cs:1445