1 #if !defined(TEAMTALKDLL_H) 19 #define TEAMTALK_VERSION "5.15.0.5135" 24 #ifdef TEAMTALKDLL_EXPORTS 25 #define TEAMTALKDLL_API __declspec(dllexport) 27 #define TEAMTALKDLL_API __declspec(dllimport) 32 #define TEAMTALKDLL_API 42 #if !defined(TEAMTALK_TYPES) 44 #define TEAMTALK_TYPES 1 56 typedef unsigned short UINT16;
58 typedef long long INT64;
59 typedef unsigned int UINT32;
91 #define TT_USERID_MAX 0xFFF 95 #define TT_CHANNELID_MAX 0xFFF 101 #define TT_VIDEOFORMATS_MAX 1024 107 #define TT_TRANSMITUSERS_MAX 128 115 #define TT_CLASSROOM_FREEFORALL 0xFFF 119 #define TT_CLASSROOM_USERID_INDEX 0 123 #define TT_CLASSROOM_STREAMTYPE_INDEX 1 128 #define TT_TRANSMITUSERS_FREEFORALL 0xFFF 133 #define TT_TRANSMITUSERS_USERID_INDEX 0 138 #define TT_TRANSMITUSERS_STREAMTYPE_INDEX 1 145 #define TT_CHANNELS_OPERATOR_MAX 16 151 #define TT_TRANSMITQUEUE_MAX 16 155 #define TT_SAMPLERATES_MAX 16 162 #define TT_DESKTOPINPUT_MAX 16 171 #define TT_DESKTOPINPUT_KEYCODE_IGNORE 0xFFFFFFFF 179 #define TT_DESKTOPINPUT_MOUSEPOS_IGNORE 0xFFFF 187 #define TT_DESKTOPINPUT_KEYCODE_LMOUSEBTN 0x1000 195 #define TT_DESKTOPINPUT_KEYCODE_RMOUSEBTN 0x1001 203 #define TT_DESKTOPINPUT_KEYCODE_MMOUSEBTN 0x1002 212 #define TT_MEDIAPLAYBACK_OFFSET_IGNORE 0xFFFFFFFF 537 #define TT_SOUNDDEVICE_ID_SHARED_FLAG 0x00000800 543 #define TT_SOUNDDEVICE_ID_MASK 0x000007FF 547 #define TT_SOUNDDEVICE_ID_REMOTEIO 0 555 #define TT_SOUNDDEVICE_ID_VOICEPREPROCESSINGIO (1 | TT_SOUNDDEVICE_ID_SHARED_FLAG) 559 #define TT_SOUNDDEVICE_ID_OPENSLES_DEFAULT 0 565 #define TT_SOUNDDEVICE_ID_OPENSLES_VOICECOM 1 575 #define TT_SOUNDDEVICE_ID_TEAMTALK_VIRTUAL 1978 712 #define TT_LOCAL_USERID 0 721 #define TT_LOCAL_TX_USERID 0x1002 729 #define TT_MUXED_USERID 0x1001 1130 #define SPEEX_NB_MIN_BITRATE 2150 1133 #define SPEEX_NB_MAX_BITRATE 24600 1136 #define SPEEX_WB_MIN_BITRATE 3950 1139 #define SPEEX_WB_MAX_BITRATE 42200 1142 #define SPEEX_UWB_MIN_BITRATE 4150 1145 #define SPEEX_UWB_MAX_BITRATE 44000 1192 #define OPUS_APPLICATION_VOIP 2048 1195 #define OPUS_APPLICATION_AUDIO 2049 1198 #define OPUS_MIN_BITRATE 6000 1201 #define OPUS_MAX_BITRATE 510000 1204 #define OPUS_MIN_FRAMESIZE 2 1207 #define OPUS_MAX_FRAMESIZE 60 1211 #define OPUS_REALMAX_FRAMESIZE 120 1406 #define WEBRTC_GAINCONTROLLER2_FIXEDGAIN_MAX 49.9f 1470 #define WEBM_VPX_DL_REALTIME 1 1473 #define WEBM_VPX_DL_GOOD_QUALITY 1000000 1476 #define WEBM_VPX_DL_BEST_QUALITY 0 2303 float soundPositionVoice[3];
2308 float soundPositionMediaFile[3];
2313 TTBOOL stereoPlaybackVoice[2];
2318 TTBOOL stereoPlaybackMediaFile[2];
4257 IN
const INT32* pnWaitMs);
4289 ClientEvent nClientEvent,
4315 IN
const TTCHAR szRegKey[TT_STRLEN]);
4329 OUT INT32* lpnOutputDeviceID);
4335 OUT INT32* lpnInputDeviceID,
4336 OUT INT32* lpnOutputDeviceID);
4352 IN OUT INT32* lpnHowMany);
4378 IN INT32 nOutputDeviceID,
4379 IN INT32 nSampleRate,
4381 IN TTBOOL bDuplexMode,
4418 IN INT32 nOutputDeviceID,
4419 IN INT32 nSampleRate,
4421 IN TTBOOL bDuplexMode,
4469 IN INT32 nInputDeviceID);
4503 IN INT32 nFrameSize);
4535 IN INT32 nOutputDeviceID);
4569 IN INT32 nFrameSize);
4605 IN INT32 nInputDeviceID,
4606 IN INT32 nOutputDeviceID);
4848 IN TTBOOL bMuteAll);
4894 IN StreamTypes uStreamTypes,
4975 IN StreamTypes uStreamTypes,
5114 IN INT32 nDelayMSec);
5179 IN
const TTCHAR* szAudioFileName,
5213 IN INT32 nChannelID,
5214 IN
const TTCHAR* szAudioFileName,
5251 IN StreamTypes uStreamTypes,
5253 IN
const TTCHAR* szAudioFileName,
5279 IN INT32 nChannelID);
5333 IN OUT INT32* lpnHowMany);
5376 IN INT32 nDestWidth,
5377 IN INT32 nDestHeight,
5414 IN INT32 nDestWidth,
5415 IN INT32 nDestHeight,
5419 IN INT32 nSrcHeight,
5465 IN
const TTCHAR* szMediaFilePath,
5500 IN
const TTCHAR* szMediaFilePath,
5565 IN
const TTCHAR* szMediaFilePath,
5582 IN INT32 nPlaybackSessionID,
5595 IN INT32 nPlaybackSessionID);
5797 IN INT32 nDestWidth,
5798 IN INT32 nDestHeight);
5839 IN INT32 nDestWidth,
5840 IN INT32 nDestHeight,
5844 IN INT32 nSrcHeight);
5847 #if defined(__APPLE__) 5951 IN INT32 nDesktopInputCount);
6055 IN
const TTCHAR* szHostAddress,
6058 IN INT32 nLocalTcpPort,
6059 IN INT32 nLocalUdpPort,
6060 IN TTBOOL bEncrypted);
6090 IN
const TTCHAR* szHostAddress,
6093 IN INT32 nLocalTcpPort,
6094 IN INT32 nLocalUdpPort,
6095 IN TTBOOL bEncrypted,
6096 IN
const TTCHAR* szSystemID);
6121 IN
const TTCHAR* szHostAddress,
6124 IN
const TTCHAR* szBindIPAddr,
6125 IN INT32 nLocalTcpPort,
6126 IN INT32 nLocalUdpPort,
6127 IN TTBOOL bEncrypted);
6228 IN
const TTCHAR* szNickname,
6229 IN
const TTCHAR* szUsername,
6230 IN
const TTCHAR* szPassword);
6268 IN
const TTCHAR* szNickname,
6269 IN
const TTCHAR* szUsername,
6270 IN
const TTCHAR* szPassword,
6271 IN
const TTCHAR* szClientName);
6358 IN INT32 nChannelID,
6359 IN
const TTCHAR* szPassword);
6403 IN
const TTCHAR* szNewNick);
6427 IN INT32 nStatusMode,
6428 IN
const TTCHAR* szStatusMessage);
6476 IN INT32 nChannelID,
6477 IN TTBOOL bMakeOperator);
6502 IN INT32 nChannelID,
6503 IN
const TTCHAR* szOpPassword,
6504 IN TTBOOL bMakeOperator);
6533 IN INT32 nChannelID);
6572 IN INT32 nChannelID,
6573 IN
const TTCHAR* szLocalFilePath);
6607 IN INT32 nChannelID,
6609 IN
const TTCHAR* szLocalFilePath);
6636 IN INT32 nChannelID,
6657 IN Subscriptions uSubscriptions);
6678 IN Subscriptions uSubscriptions);
6769 IN INT32 nChannelID);
6794 IN INT32 nChannelID);
6894 IN
const TTCHAR* szUsername);
6926 IN INT32 nChannelID);
6941 IN BanTypes uBanTypes);
6987 IN
const TTCHAR* szIPAddress,
6988 IN INT32 nChannelID);
7014 IN
const TTCHAR* szIPAddress,
7015 IN INT32 nChannelID);
7051 IN INT32 nChannelID,
7140 IN OUT
User* lpUsers,
7141 IN OUT INT32* lpnHowMany);
7178 IN INT32 nChannelID,
7190 IN INT32 nChannelID,
7202 IN
const TTCHAR* szChannelPath);
7218 IN INT32 nChannelID,
7219 IN OUT
User* lpUsers,
7220 IN OUT INT32* lpnHowMany);
7238 IN INT32 nChannelID,
7240 IN OUT INT32* lpnHowMany);
7252 IN INT32 nChannelID,
7266 IN INT32 nChannelID);
7276 IN OUT INT32* lpnHowMany);
7353 IN INT32 nUserID, OUT
User* lpUser);
7376 IN
const TTCHAR* szUsername,
7398 IN StreamType nStreamType,
7416 IN StreamType nStreamType,
7438 IN StreamType nStreamType,
7439 IN INT32 nDelayMSec);
7468 IN StreamType nStreamType,
7484 IN StreamType nStreamType,
7506 IN StreamType nStreamType,
7525 IN StreamType nStreamType,
7526 IN TTBOOL bLeftSpeaker,
7527 IN TTBOOL bRightSpeaker);
7567 IN
const TTCHAR* szFolderPath,
7568 IN
const TTCHAR* szFileNameVars,
7597 IN
const TTCHAR* szFolderPath,
7598 IN
const TTCHAR* szFileNameVars,
7600 IN INT32 nStopRecordingExtraDelayMSec);
7630 IN StreamTypes uStreamType,
7657 IN StreamTypes uStreamTypes,
7692 IN INT32 nTransferID,
7706 IN INT32 nTransferID);
7771 IN INT32 nDesktopInputCount);
7795 IN INT32 nDesktopInputCount);
7834 IN
const INT32* lpnVKCodes,
7835 IN INT32 nVKCodeCount);
7845 IN INT32 nHotKeyID);
7855 IN INT32 nHotKeyID);
7872 IN HWND hWnd, UINT32 uMsg);
7905 IN StreamTypes uStreamTypes,
7906 IN INT32 nFrequency);
7909 IN INT32 nFrequency);
7992 IN MixerControl nControl,
8005 IN MixerControl nControl);
8016 IN MixerControl nControl,
8028 IN MixerControl nControl);
8038 IN MixerControl nControl);
8049 IN MixerControl nControl);
8060 IN MixerControl nControl,
8072 IN MixerControl nControl);
8129 IN INT32 nControlIndex,
8142 IN INT32 nControlIndex);
8155 IN INT32 nControlIndex);
8197 IN
const TTCHAR* szExecutable);
struct VideoFrame VideoFrame
A RGB32 image where the pixels can be accessed directly in an allocated frameBuffer.
TEAMTALKDLL_API INT32 TT_DoLogout(IN TTInstance *lpTTInstance)
Logout of the server.
struct AudioPreprocessor AudioPreprocessor
Configure the audio preprocessor specified by nPreprocessor.
A default channel is a channel which disappears after the last user leaves the channel.
User can broadcast text message of type MSGTYPE_BROADCAST to all users.
User uploaded a file is logged to file by the server.
Intercept all video sent by a user. Only user-type USERTYPE_ADMIN can do this. By enabling this subsc...
TEAMTALKDLL_API TTBOOL TT_EnableVoiceTransmission(IN TTInstance *lpTTInstance, IN TTBOOL bEnable)
Start/stop transmitting of voice data from sound input.
Properties to prevent server abuse.
Used to denote nothing selected.
User can send channel text messages, i.e. MSGTYPE_CHANNEL.
User's IP-address is logged to file by serer.
The SoundDevice is the default communication device. This feature is only supported on SOUNDSYSTEM_WA...
INT32 nTcpServerSilenceSec
The number of seconds nothing has been received by the client on TCP.
TEAMTALKDLL_API DesktopWindow * TT_AcquireUserDesktopWindowEx(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN BitmapFormat nBitmapFormat)
Same as TT_AcquireUserDesktopWindow() except an extra option for converting bitmap to a different for...
UINT32 uReserved
Reserved. To preserve alignment.
struct User User
A struct containing the properties of a user.
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveInControlCount(IN INT32 nWaveDeviceID)
Get the number of Windows Mixer Wave-In devices.
INT32 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...
TEAMTALKDLL_API TTBOOL TT_GetSoundInputPreprocessEx(IN TTInstance *lpTTInstance, OUT AudioPreprocessor *lpAudioPreprocessor)
Get the sound preprocessor settings which are currently in use for recorded sound input device (voice...
INT32 nFrameSizeMSec
OPUS supports 2.5, 5, 10, 20, 40, 60, 80, 100 and 120 msec. If nFrameSizeMSec is 0 then nFrameSizeMSe...
TEAMTALKDLL_API TTSoundLoop * TT_StartSoundLoopbackTestEx(IN INT32 nInputDeviceID, IN INT32 nOutputDeviceID, IN INT32 nSampleRate, IN INT32 nChannels, IN TTBOOL bDuplexMode, IN const AudioPreprocessor *lpAudioPreprocessor, IN const SoundDeviceEffects *lpSoundDeviceEffects)
Perform a record and playback test of specified sound devices along with an audio configuration...
A sound input device failed.
INT32 nChannelID
The channel where the file is/will be located.
INT32 nMaxDesktopTxPerSecond
The maximum number of bytes per second which the server will allow for desktop packets. If this value is exceeded the server will start dropping desktop packets. 0 = disabled.
User can record voice in all channels. Even channels with CHANNEL_NO_RECORDING.
INT64 nVoicePacketsLost
Number of voice packets lost from user.
UserTypes uUserType
The uUserType of the user's UserAccount. This property is set by the server and will not change after...
A user state has changed.
INT32 nWaveDeviceID
A Windows specific ID to the sound device.
User's custom text messages are logged to file by the server.
Desktop protocol based on ZLIB for image compression and UDP for data transmission.
Only one user can transmit at a time.
A banned user has been received from the server.
INT32 nUserTimeout
The number of seconds before a user who hasn't responded to keepalives will be kicked off the server...
INT32 nMaxNoiseSuppressDB
Maximum attenuation of the noise in dB. Negative value! Default value is -30. Value is ignored if bEn...
UINT32 Subscriptions
A bitmask based on Subscription describing which subscriptions are enabled.
INT32 nMaxAdaptiveDelayMSec
A hard maximum delay on the adaptive delay. Only valid when higher than zero. Default = 0...
TEAMTALKDLL_API INT32 TT_GetMyUserData(IN TTInstance *lpTTInstance)
If an account was used in TT_DoLogin then this value will return the nUserData from the UserAccount...
INT64 nMediaFileVideoFramesLost
Media file video frames which couldn't be shown because packets were lost.
WebM video codec settings.
TEAMTALKDLL_API TTBOOL TT_MacOS_GetWindow(IN INT32 nIndex, OUT ShareWindow *lpShareWindow)
Enumerate all windows on the desktop. Increment nIndex until the function returns FALSE...
TTBOOL bInbound
TRUE if download and FALSE if upload.
INT32 nBufferMSecVoice
The size of the buffer (in msec) to hold voice content.
Intercept all custom text messages sent by user. Only user-type USERTYPE_ADMIN can do this...
INT32 nBufferMSecMediaFile
The size of the buffer (in msec) to hold media file content.
Ban szUsername specified in BannedUser.
TEAMTALKDLL_API TTBOOL TT_CloseTeamTalk(IN TTInstance *lpTTInstance)
Close the TeamTalk client instance and release its resources.
INT32 nFileID
The ID identifying the file.
User was kicked is logged to file by the server.
UINT32 BanTypes
A mask of types of bans that apply.
A new audio block can be extracted.
TEAMTALKDLL_API INT32 TT_DoMakeChannel(IN TTInstance *lpTTInstance, IN const Channel *lpChannel)
Make a new channel on the server.
TEAMTALKDLL_API TTBOOL TT_Mixer_GetMixerName(IN INT32 nMixerIndex, OUT TTCHAR szMixerName[TT_STRLEN])
Get the name of a Windows Mixer based on its name.
If set GetSoundInputLevel() is higher than the voice activation level. To enable voice transmission i...
User is allowed to forward desktop packets through server.
TEAMTALKDLL_API ClientFlags TT_GetFlags(IN TTInstance *lpTTInstance)
Get a bitmask describing the client's current state.
INT32 nUdpKeepAliveRTXMSec
Client instance's interval for retransmitting UDP keep alive packets. If server hasn't responded to U...
User logged out is logged to file by the server.
Set up audio effects supported by the sound device.
The first voice packet of a new voice stream has been received.
TEAMTALKDLL_API INT32 TT_DBG_SIZEOF(IN TTType nType)
User deleted a file is logged to file by the server.
Cannot join same channel twice.
TEAMTALKDLL_API TTBOOL TT_SetLicenseInformation(IN const TTCHAR szRegName[TT_STRLEN], IN const TTCHAR szRegKey[TT_STRLEN])
Set license information to disable trial mode.
If set the client instance will start transmitting audio if the sound level is above the voice activa...
struct ShareWindow ShareWindow
A struct which describes the properties of a window which can be shared.
User is allowed to forward desktop input packets through server.
OpusCodec opus
Opus codec settings if nCodec is OPUS_CODEC.
TEAMTALKDLL_API TTBOOL TT_SetSoundInputPreprocessEx(IN TTInstance *lpTTInstance, IN const AudioPreprocessor *lpAudioPreprocessor)
Enable sound preprocessor which should be used for processing audio recorded by the sound input devic...
TEAMTALKDLL_API TTBOOL TT_PaintVideoFrame(IN HDC hDC, IN INT32 XDest, IN INT32 YDest, IN INT32 nDestWidth, IN INT32 nDestHeight, IN VideoFrame *lpVideoFrame)
Paint user's video frame using a Windows' DC (device context).
INT64 nDesktopBytesRecv
Desktop data received (on UDP).
struct SpeexCodec SpeexCodec
Speex audio codec settings for Constant Bitrate mode (CBR).
TEAMTALKDLL_API TTBOOL TT_HotKey_RemoveTestHook(IN TTInstance *lpTTInstance)
Remove the test hook again so the hWnd in TT_HotKey_InstallTestHook will no longer be notified...
TEAMTALKDLL_API TTBOOL TT_StartRecordingMuxedAudioFile(IN TTInstance *lpTTInstance, IN const AudioCodec *lpAudioCodec, IN const TTCHAR *szAudioFileName, IN AudioFileFormat uAFF)
Store all audio conversations with specific AudioCodec settings to a single file. ...
The server does not support the audio codec specified by the client. Introduced in version 4...
Desktop window stream type which is a window (or bitmap) being transmitted.
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveInBoost(IN INT32 nWaveDeviceID)
See if microphone boost is enabled.
struct AudioBlock AudioBlock
An audio block containing the raw audio from a user who was talking.
INT32 nSampleRate
The sample rate of the raw audio.
Subscription
A user by default accepts audio, video and text messages from all users. Using subscribtions can...
TEAMTALKDLL_API TTBOOL TT_GetDefaultSoundDevices(OUT INT32 *lpnInputDeviceID, OUT INT32 *lpnOutputDeviceID)
Get the default sound devices.
Subscribing to STREAMTYPE_MEDIAFILE_VIDEO and STREAMTYPE_MEDIAFILE_AUDIO.
If set the client is currently streaming the video of a media file. When streaming a video file the C...
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveInVolume(IN INT32 nWaveDeviceID, IN MixerControl nControl)
Get the volume of a Windows Mixer Wave-In device from the 'enum' of devices.
TEAMTALKDLL_API TTBOOL TT_SendDesktopInput(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN const DesktopInput lpDesktopInputs[TT_DESKTOPINPUT_MAX], IN INT32 nDesktopInputCount)
Send a mouse or keyboard event to a shared desktop window.
TEAMTALKDLL_API INT32 TT_DoDeleteUserAccount(IN TTInstance *lpTTInstance, IN const TTCHAR *szUsername)
Issue command to delete a user account on the server.
TTBOOL bMore
Whether this text message is to be merged with next text message.
INT32 nMaxUsers
The maximum number of users allowed on the server. A user with admin account can ignore this...
INT64 nUdpBytesSent
Bytes sent on UDP.
TEAMTALKDLL_API TTBOOL TT_GetChannelFiles(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN OUT RemoteFile *lpRemoteFiles, IN OUT INT32 *lpnHowMany)
Get the list of the files in a channel which can be downloaded.
User downloaded a file is logged to file by the server.
WebRTCAudioPreprocessor webrtc
Used when nPreprocessor is WEBRTC_AUDIOPREPROCESSOR.
Server statistics available.
Desktop input (mouse or keyboard input) has been received from a user.
INT64 nMediaFileAudioBytesRecv
Audio from media file data received (on UDP).
Audio configuration for clients in a channel.
INT32 nTcpPort
The server's TCP port.
INT32 nParentID
Parent channel ID. 0 means no parent channel, i.e. it's the root channel.
The bitmap is a 16-bit colored bitmap. The maximum pixels.
ServerLogEvent
Events that are logged by the server, i.e. written to server's log file.
INT32 nWindowY
Y coordinate of window.
INT32 nMaxInputChannels
The maximum number of input channels.
struct ClientErrorMsg ClientErrorMsg
Struct containing an error message.
TEAMTALKDLL_API INT32 TT_DoUpdateServer(IN TTInstance *lpTTInstance, IN const ServerProperties *lpServerProperties)
Update server properties.
The maximum size of the payload put into UDP packets has been updated.
TEAMTALKDLL_API TTBOOL TT_EnableAudioBlockEventEx(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamTypes uStreamTypes, IN const AudioFormat *lpAudioFormat, IN TTBOOL bEnable)
Enable/disable access to raw audio from individual users, local microphone input or mixed stream of a...
TEAMTALKDLL_API TTBOOL TT_Firewall_AppExceptionExists(IN const TTCHAR *szExecutable)
Check if an executable is already in the Windows Firewall exception list.
TEAMTALKDLL_API INT32 TT_DoChannelOp(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN INT32 nChannelID, IN TTBOOL bMakeOperator)
Make another user operator of a channel.
A button was pressed or released on the user's keyboard or mouse.
TEAMTALKDLL_API TTBOOL TT_Firewall_Enable(IN TTBOOL bEnable)
Enable/disable the Windows Firewall.
TEAMTALKDLL_API TTBOOL TT_Firewall_AddAppException(IN const TTCHAR *szName, IN const TTCHAR *szExecutable)
Add an application to the Windows Firewall exception list.
Translate from TTKEYCODE to Mac OS X Carbon kVK_* key-code.
MixerControl
The Windows mixer controls which can be queried by the TT_Mixer_* functions.
INT32 nLevel
Noise suppression level. 0 = Low, 1 = Moderate, 2 = High, 3 = VeryHigh. Default: 1.
User updated a channel is logged to file by the server.
TEAMTALKDLL_API UserRights TT_GetMyUserRights(IN TTInstance *lpTTInstance)
Convenience method for TT_GetMyUserAccount()
TEAMTALKDLL_API INT32 TT_GetChannelIDFromPath(IN TTInstance *lpTTInstance, IN const TTCHAR *szChannelPath)
Get the channel ID of the supplied path. Channels are separated by '/'.
Intercept all voice sent by a user. Only user-type USERTYPE_ADMIN can do this. By enabling this subsc...
Allow multiple users to log on to the server with the same UserAccount.
struct FileTransfer FileTransfer
A struct containing the properties of a file transfer.
struct SpeexDSP SpeexDSP
Speex DSP is used for specifying how recorded audio from a sound input device should be preprocessed ...
Use WebRTC's audio preprocessor from WebRTCAudioPreprocessor. https://webrtc.org. ...
struct SpeexVBRCodec SpeexVBRCodec
Speex audio codec settings for Variable Bitrate mode (VBR).
TEAMTALKDLL_API INT32 TT_HotKey_IsActive(IN TTInstance *lpTTInstance, IN INT32 nHotKeyID)
Check whether hotkey is active.
Server failed to open file.
Subscribing to custom user messages.
VOID * lpRawAudio
The raw audio in 16-bit integer format array. The size of the array in bytes is sizeof(short) * nSamp...
TEAMTALKDLL_API HWND TT_Windows_GetDesktopHWND(void)
Get the handle (HWND) of the Windows desktop (full desktop).
INT32 nTimeOutTimerMediaFileMSec
Time out timer for media file stream. The maximum time in miliseconds a user can transmit a media fil...
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveOutMute(IN INT32 nWaveDeviceID, IN MixerControl nControl)
Get the mute state of a Windows Mixer Wave-Out device from the 'enum' of devices. ...
The bitmap is a 24-bit colored bitmap. The maximum size of a 24-bit bitmap is 4095 blocks of 85 by 16...
TEAMTALKDLL_API INT32 TT_DoLogin(IN TTInstance *lpTTInstance, IN const TTCHAR *szNickname, IN const TTCHAR *szUsername, IN const TTCHAR *szPassword)
Same as TT_DologinEx() but without the option to specify szClientName. Kept for backwards compatibili...
The SoundDevice can position user in 3D.
TEAMTALKDLL_API TTBOOL TT_CloseSoundDuplexDevices(IN TTInstance *lpTTInstance)
Shut down sound devices running in duplex mode.
TEAMTALKDLL_API void TT_GetErrorMessage(IN INT32 nError, OUT TTCHAR szErrorMsg[TT_STRLEN])
Get textual discription of an error message.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveOutMute(IN INT32 nWaveDeviceID, IN MixerControl nControl, IN TTBOOL bMute)
Mute or unmute a Windows Mixer Wave-Out device from the 'enum' of devices.
A struct containing the properties of an event.
INT32 nUsersServed
The number of users who have logged on to the server.
Don't allow voice transmission if it's trigged by voice activation.
TEAMTALKDLL_API TTBOOL TT_CloseDesktopWindow(IN TTInstance *lpTTInstance)
Close the current desktop session.
INT32 nMaxDecDBSec
Used so volume should not be attenuated too quickly (maximal gain decrease in dB/second). Negative value! Default is -40. Value is ignored if bEnableAGC is FALSE.
Use the SpeexDSP audio preprocessor.
INT32 nCommandsIntervalMSec
Commands within given interval.
UserTypes uUserType
A bitmask of the type of user based on UserType.
A user account has been removed.
INT64 nVoiceBytesTX
The number of bytes in audio packets sent from the server to clients.
TTBOOL bVerifyPeer
Verify that peer (client or server) uses a certificate that has been generated by the Certificate Aut...
A struct containing the properties of a file in a Channel.
TEAMTALKDLL_API INT32 TT_DesktopInput_KeyTranslate(TTKeyTranslate nTranslate, IN const DesktopInput *lpDesktopInputs, OUT DesktopInput *lpTranslatedDesktopInputs, IN INT32 nDesktopInputCount)
Translate platform key-code to and from TeamTalk's intermediate format.
User was banned is logged to file by the server.
UINT32 ClientFlags
A bitmask based on ClientFlag describing the local client instance's current state.
INT32 nTcpKeepAliveIntervalMSec
Client instance's interval between automatically doing TT_DoPing() command. Read-only value...
UINT32 ServerLogEvents
Bitmask of ServerLogEvent.
INT32 nMaxVideoCaptureTxPerSecond
The maximum number of bytes per second which the server will allow for video input packets...
Audio stream type from a media file which is being streamed.
TTBOOL bEnableDenoise
Enable noise suppression.
SoundLevel
An enum encapsulation the minimum, maximum and default sound levels for input and output sound device...
TEAMTALKDLL_API TTBOOL TT_SetUserPosition(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN float x, IN float y, IN float z)
Set the position of a user.
TTBOOL bEnableAGC
Whether to enable AGC with the settings specified nGainLevel, nMaxIncDBSec, nMaxDecDBSec and nMaxGain...
Cannot process command since channel is not empty.
Audio codec used by channel failed to initialize. Ensure the settings specified in AudioCodec are val...
An incomplete text message.
If set the client instance's video device has been initialized, i.e. TT_InitVideoCaptureDevice has be...
TEAMTALKDLL_API TTBOOL TT_PaintDesktopWindowEx(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN HDC hDC, IN INT32 XDest, IN INT32 YDest, IN INT32 nDestWidth, IN INT32 nDestHeight, IN INT32 XSrc, IN INT32 YSrc, IN INT32 nSrcWidth, IN INT32 nSrcHeight)
Paint user's desktop window using a Windows' DC (device context).
INT64 nVoicePacketsRecv
Number of voice packets received from user.
TEAMTALKDLL_API TTBOOL TT_SetUserMediaStorageDirEx(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN const TTCHAR *szFolderPath, IN const TTCHAR *szFileNameVars, IN AudioFileFormat uAFF, IN INT32 nStopRecordingExtraDelayMSec)
Store user's audio to disk.
Translate from Mac OS X Carbon kVK_* key-code to TTKEYCODE. The Mac OS X key-codes are defined in Car...
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveInMute(IN INT32 nWaveDeviceID)
See if microphone is muted.
INT32 nHeight
The height in pixels of the window.
A channel which persists even when the last user leaves the channel.
TEAMTALKDLL_API INT32 TT_DoBanUserEx(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN BanTypes uBanTypes)
Ban the user with nUserID using the ban types specified.
INT32 nUdpConnectTimeoutMSec
The duration before the client instance should give up trying to connect to the server on UDP...
User's status is locked. TT_DoChangeStatus() cannot be used.
TEAMTALKDLL_API TTBOOL TT_GetSoundInputPreprocess(IN TTInstance *lpTTInstance, OUT SpeexDSP *lpSpeexDSP)
Get the sound preprocessor settings which are currently in use for recorded sound input device (voice...
float fGainDB
Gain level in dB. Range: 0 <= x < 50. Default: 0.
TEAMTALKDLL_API TTBOOL TT_HotKey_Register(IN TTInstance *lpTTInstance, IN INT32 nHotKeyID, IN const INT32 *lpnVKCodes, IN INT32 nVKCodeCount)
Register a global hotkey.
INT32 nWidth
The width in pixels of the image contained in frameBuffer.
TEAMTALKDLL_API TTBOOL TT_SetUserJitterControl(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN const JitterConfig *lpJitterConfig)
Set the configuration for de-jitter measures for a user.
AudioPreprocessorType nPreprocessor
The audio preprocessor to use in the union of audio preprocessors.
TEAMTALKDLL_API INT32 TT_DoLoginEx(IN TTInstance *lpTTInstance, IN const TTCHAR *szNickname, IN const TTCHAR *szUsername, IN const TTCHAR *szPassword, IN const TTCHAR *szClientName)
Logon to a server.
TEAMTALKDLL_API INT32 TT_DoSendFile(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN const TTCHAR *szLocalFilePath)
Send a file to the specified channel.
INT32 nChannels
Mono = 1 or stereo = 2.
TEAMTALKDLL_API TTBOOL TT_SendDesktopCursorPosition(IN TTInstance *lpTTInstance, IN UINT16 nPosX, IN UINT16 nPosY)
Send the position of mouse cursor to users in the same channel.
The minimum gain level (since it's zero it means silence).
Intercept all channel messages sent by a user. Only user-type USERTYPE_ADMIN can do this...
Value for specifying that no audio preprocessing should occur.
TEAMTALKDLL_API TTBOOL TT_Disconnect(IN TTInstance *lpTTInstance)
Disconnect from the server.
#define TT_SAMPLERATES_MAX
TEAMTALKDLL_API INT32 TT_GetSoundOutputVolume(IN TTInstance *lpTTInstance)
Get master volume.
INT32 nUdpPingTimeMs
Response time to server on UDP (based on ping/pong sent at a specified interval. Set to -1 if not cur...
INT32 nUserID
The user's ID. A value from 1 - TT_USERID_MAX. This property is set by the server and will not change...
Command has syntax error. Only used internally.
DirectSound audio system. Should be used on Windows.
User is allowed to create temporary channels which disappear when last user leaves the channel...
A struct containing the properties of the server's settings.
TEAMTALKDLL_API INT32 TT_DoBan(IN TTInstance *lpTTInstance, IN const BannedUser *lpBannedUser)
Ban the properties specified in lpBannedUser.
TEAMTALKDLL_API TTBOOL TT_Firewall_IsEnabled(void)
Check if the Windows Firewall is currently enabled.
Subscribing to STREAMTYPE_DESKTOP.
TEAMTALKDLL_API const TTCHAR * TT_GetVersion(void)
Get the DLL's version number.
TTBOOL bSupports3D
Whether the sound device supports 3D-sound effects.
Image format where a 640x480 pixel images takes up 614.400 bytes.
TEAMTALKDLL_API TTBOOL TT_ReleaseUserAudioBlock(IN TTInstance *lpTTInstance, IN AudioBlock *lpAudioBlock)
Release the shared memory of an AudioBlock.
INT32 nChannelID
The channel's ID. A value from 1 - TT_CHANNELID_MAX.
The client instance (TTInstance) is in closed state, i.e. TT_InitTeamTalk has return a valid instance...
TEAMTALKDLL_API TTBOOL TT_PumpMessage(IN TTInstance *lpTTInstance, ClientEvent nClientEvent, INT32 nIdentifier)
Cause client instance event thread to schedule an update event.
INT32 nTxIntervalMSec
Milliseconds of audio data before each transmission.
If set the client instance is connected to a server, i.e. CLIENTEVENT_CON_SUCCESS event has been issu...
TEAMTALKDLL_API INT32 TT_GetSoundInputGainLevel(IN TTInstance *lpTTInstance)
Get voice gain level of outgoing audio.
The default volume. Use this whenever possible since it requires the least amount of CPU usage...
float fMaxGainChangeDBPerSecond
UINT32 SoundDeviceFeatures
A bitmask of available SoundDeviceFeature. Checkout uSoundDeviceFeatures on SoundDevice.
BanType
Way to ban a user from either login or joining a channel.
INT32 nEchoSuppress
Set maximum attenuation of the residual echo in dB (negative number). Default is -40. Value is ignored if bEnableEchoCancellation is FALSE.
INT32 nStatusMode
The user's current status mode. Invoke TT_DoChangeStatus() to change this value. Event CLIENTEVENT_CM...
If set the client instance is currently transmitting audio.
Channel channel
Valid if ttType is __CHANNEL.
INT64 nFilesRx
The number of bytes for file transmission received by the server.
TEAMTALKDLL_API INT32 TT_DoUnsubscribe(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN Subscriptions uSubscriptions)
Unsubscribe to user events/data. This can be used to ignore messages or voice data from a specific us...
Subscriptions uPeerSubscriptions
A bitmask of what this user subscribes to from local client instance. Invoking TT_DoSubscribe() and T...
TEAMTALKDLL_API TTBOOL TT_SetSoundDeviceEffects(IN TTInstance *lpTTInstance, IN const SoundDeviceEffects *lpSoundDeviceEffect)
Set up audio effects on a sound device.
INT64 nUptimeMSec
The server's uptime in msec.
TEAMTALKDLL_API TTBOOL TT_SetVoiceActivationLevel(IN TTInstance *lpTTInstance, IN INT32 nLevel)
Set voice activation level.
Core Audio. Should be used on MacOS.
TEAMTALKDLL_API TTBOOL TT_GetChannel(IN TTInstance *lpTTInstance, IN INT32 nChannelID, OUT Channel *lpChannel)
Get the channel with a specific ID.
TEAMTALKDLL_API TTBOOL TT_ReleaseUserVideoCaptureFrame(IN TTInstance *lpTTInstance, IN VideoFrame *lpVideoFrame)
Delete a user's video frame, acquired through TT_AcquireUserVideoCaptureFrame(), so its allocated res...
User created new channel is logged to file by the server.
SpeexDSP speexdsp
Used when nPreprocessor is SPEEXDSP_AUDIOPREPROCESSOR.
Subscribing to STREAMTYPE_DESKTOPINPUT.
UserRights uUserRights
A bitmask based on UserRight which specifies the rights the user have who logs onto the server...
Subscribing to STREAMTYPE_VOICE.
TEAMTALKDLL_API INT32 TT_GetVoiceActivationLevel(IN TTInstance *lpTTInstance)
Get voice activation level.
INT64 nUdpBytesRecv
Bytes received on UDP.
INT64 nVideoCaptureFramesDropped
Number of video frames dropped because user application didn't retrieve video frames in time...
User can download files from channels.
A new video frame from a video media file was received from a user.
TTBOOL bDTX
Discontinuous transmission. Enables "null" packets during silence.
float fExtraSaturationMarginDB
The maximum number of logins allowed per IP-address has been exceeded.
Shortcut to allow both audio and video media files.
struct ServerProperties ServerProperties
A struct containing the properties of the server's settings.
TTBOOL bEnableDenoise
Whether clients who join the channel should automatically enable denoising.
struct EncryptionContext EncryptionContext
Configure peer verification for encrypted connection.
A user with administrator privileges.
A user has sent a text-message.
A channel's properties has been updated.
INT32 nTxIntervalMSec
Duration of audio before each transmission. Minimum is 2 msec. Recommended is 40 msec. Maximum is 500 msec.
TEAMTALKDLL_API TTBOOL TT_EnableAudioBlockEvent(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamTypes uStreamTypes, IN TTBOOL bEnable)
Enable/disable access to raw audio from individual users, local microphone input or mixed stream of a...
User saved server's configuration is logged to file by the server.
TEAMTALKDLL_API TTBOOL TT_Connect(IN TTInstance *lpTTInstance, IN const TTCHAR *szHostAddress, IN INT32 nTcpPort, IN INT32 nUdpPort, IN INT32 nLocalTcpPort, IN INT32 nLocalUdpPort, IN TTBOOL bEncrypted)
Connect to a server.
User can see hidden channels, CHANNEL_HIDDEN.
struct TTMessage TTMessage
A struct containing the properties of an event.
If set the user's media file playback is muted.
Cannot leave channel because not in channel.
INT32 nMaxBitRate
The maximum bitrate at which the audio codec is allowed to output audio. Set to zero if it should be ...
If set user is streaming a media file. If this flag changes the event CLIENTEVENT_USER_STATECHANGE is...
The server uses a protocol which is incompatible with the client instance.
Voice activation has triggered transmission.
TEAMTALKDLL_API TTBOOL TT_MacOS_GetWindowFromWindowID(IN INT64 nWindowID, OUT ShareWindow *lpShareWindow)
Get information about a window by passing its handle (CGWindowID).
PulseAudio API. PulseAudio is typically used on Ubuntu 22.
INT32 nGainLevel
Gain level between SOUND_GAIN_MIN and SOUND_GAIN_MAX. Default is SOUND_GAIN_DEFAULT (no gain)...
INT32 nSampleRate
The sample rate to use. Sample rate must be 8000, 12000, 16000, 24000 or 48000 Hz.
TEAMTALKDLL_API VideoFrame * TT_AcquireUserVideoCaptureFrame(IN TTInstance *lpTTInstance, IN INT32 nUserID)
Extract a user's video capture frame for display.
Struct used for specifying which audio codec a channel uses.
TTBOOL bEnableAGC
Enable Automatic Gain Control.
TTBOOL bEnableEchoCancellation
Enable/disable acoustic echo cancellation (AEC).
User disconnected from server is logged to file by the server.
Advanced Linux Sound Architecture (ALSA). Should be used on Linux.
TEAMTALKDLL_API TTBOOL TT_StopRecordingMuxedAudioFileEx(IN TTInstance *lpTTInstance, IN INT32 nChannelID)
Stop recording conversations from a channel to a single file.
TEAMTALKDLL_API TTBOOL TT_GetClientKeepAlive(IN TTInstance *lpTTInstance, OUT ClientKeepAlive *lpClientKeepAlive)
Get the client instance's current keep alive settings.
TEAMTALKDLL_API TTBOOL TT_CancelFileTransfer(IN TTInstance *lpTTInstance, IN INT32 nTransferID)
Cancel an active file transfer.
INT64 nVideoCaptureFramesRecv
Number of video frames received from user.
INT64 nVideoCapturePacketsRecv
Number of video packets received from user. A video frame can consist of several video packets...
TEAMTALKDLL_API TTBOOL TT_Enable3DSoundPositioning(IN TTInstance *lpTTInstance, IN TTBOOL bEnable)
Enable automatically position users using 3D-sound.
Hidden channel which can only be seen with USERRIGHT_VIEW_HIDDEN_CHANNELS.
TEAMTALKDLL_API INT32 TT_DoChangeStatus(IN TTInstance *lpTTInstance, IN INT32 nStatusMode, IN const TTCHAR *szStatusMessage)
Change the client instance's currect status.
TEAMTALKDLL_API TTBOOL TT_SetUserMute(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN TTBOOL bMute)
Mute a user.
TEAMTALKDLL_API INT32 TT_DoListBans(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN INT32 nIndex, IN INT32 nCount)
Issue a command to list the banned users.
INT32 nDeviceID
The ID of the sound device. Used for passing to TT_InitSoundInputDevice and TT_InitSoundOutputDevice...
User is allowed to forward video packets through server. TT_StartVideoCaptureTransmission() ...
Invalid channel password.
TEAMTALKDLL_API INT32 TT_GetMyChannelID(IN TTInstance *lpTTInstance)
Get the channel which the local client instance is currently participating in.
A struct containing the server's statistics, i.e. bandwidth usage and user activity.
A User to user text message. A message of this type can be sent across channels.
TTBOOL bActive
Valid if ttType is __TTBOOL.
TEAMTALKDLL_API TTBOOL TT_InsertAudioBlock(IN TTInstance *lpTTInstance, IN const AudioBlock *lpAudioBlock)
Transmit application provided raw audio in AudioBlock-structs as STREAMTYPE_VOICE, i.e. microphone input.
INT32 nConnectionLostMSec
The duration before the TTInstance should consider the client/server connection lost.
INT32 nActiveAdaptiveDelayMSec
The current adaptive delay. When used with TT_SetUserJitterControl, this value is used as the adaptiv...
Intercept all desktop data sent by a user. Only user-type USERTYPE_ADMIN can do this. By enabling this subscription an administrator can views desktops sent by users outside his own channel.
Windows Audio Session API (WASAPI). Should be used on Windows Vista/7/8/10.
User can see users in all other channels.
Server does not allow file transfers.
SoundSystem nSoundSystem
The sound system used by the sound device.
TEAMTALKDLL_API TTBOOL TT_SetUserStereo(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN TTBOOL bLeftSpeaker, IN TTBOOL bRightSpeaker)
Set whether a user should speak in the left, right or both speakers. This function only works if Audi...
FileTransfer filetransfer
Valid if ttType is __FILETRANSFER.
A command issued by TT_Do* methods is being processed.
The user is in initial state.
INT64 nVideoCaptureFramesLost
Video frames which couldn't be shown because packets were lost.
INT64 nMediaFileVideoBytesSent
Video from media file data sent (on UDP).
ServerStatistics serverstatistics
Valid if ttType is __SERVERSTATISTICS.
Don't allow recording to files in the channel.
A struct containing the properties of a shared desktop window.
TEAMTALKDLL_API INT32 TT_DoUnBanUserEx(IN TTInstance *lpTTInstance, IN const BannedUser *lpBannedUser)
Unban the properties specified in BannedUser.
INT32 nStreamID
A unique identifier for the frames which are part of the same video sequence. If the stream ID change...
INT32 nVerifyDepth
Set limit to depth in the certificate chain during the verification procedure.
INT32 nChannels
The number of channels used (1 for mono, 2 for stereo).
User failed to log in is logged to file by the server.
FileTransferStatus
Status of a file transfer.
Use TeamTalk's internal audio preprocessor TTAudioPreprocessor.
The SoundDevice can enable Automatic Gain Control (AGC). Enable AGC use property bEnableAGC on SoundD...
UINT32 nEncodeDeadline
Time that should be spent on encoding a frame.
TEAMTALKDLL_API INT32 TT_DoSubscribe(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN Subscriptions uSubscriptions)
Subscribe to user events and/or data.
DesktopInput desktopinput
Valid if ttType is __DESKTOPINPUT.
struct JitterConfig JitterConfig
Configuration parameters for the Jitter Buffer.
The image format with the highest bandwidth usage. A 640x480 pixel images takes up 1...
INT64 nMediaFileVideoFramesDropped
Number of media file video frames dropped because user application didn't retrieve video frames in ti...
User logged in is logged to file by the server.
TEAMTALKDLL_API TTBOOL TT_SetClientKeepAlive(IN TTInstance *lpTTInstance, IN const ClientKeepAlive *lpClientKeepAlive)
Update the client instance's default keep alive settings.
Client instance has not been authenticated.
AudioCodec audiocodec
The audio codec used by users in the channel.
TEAMTALKDLL_API TTBOOL TT_SetUserAudioStreamBufferSize(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamTypes uStreamType, IN INT32 nMSec)
Change the amount of media data which can be buffered in the user's playback queue.
Speex audio codec in VBR mode, http://www.speex.org.
VOID * frameBuffer
A buffer pointing to the bitmap data (often refered to as Scan0).
Invalid username or password for account.
INT64 nTransferred
The number of bytes transferred so far.
INT32 nTransferID
The ID identifying the file transfer.
INT64 nTotalBytesTX
The number of bytes sent from the server to clients.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveInVolume(IN INT32 nWaveDeviceID, IN MixerControl nControl, IN INT32 nVolume)
Set the volume of a Windows Mixer Wave-In device from the 'enum' of devices.
UINT32 rc_target_bitrate
Target bitrate in kbits/sec. This value must be greater than 0.
INT32 nPayloadSize
Valid if ttType is __INT32.
INT32 nSessionID
The ID of the session which the bitmap belongs to. If the session ID changes it means the user has st...
UserType
The types of users supported.
UINT32 ChannelTypes
Bitmask of ChannelType.
ChannelTypes uChannelType
A bitmask of the type of channel based on ChannelType.
TEAMTALKDLL_API TTBOOL TT_StopRecordingMuxedAudioFile(IN TTInstance *lpTTInstance)
Stop an active muxed audio recording.
If set the client instance's sound input device has been initialized, i.e. TT_InitSoundInputDevice ha...
If set the user currently has an active video stream. If this flag changes the event CLIENTEVENT_USER...
A new file is added to a channel.
A struct containing the properties of a video capture device.
A user account has been received from the server.
Cannot upload file because disk quota will be exceeded.
INT32 nWndX
X coordinate of the window relative to the Windows desktop.
A hotkey has been acticated or deactivated.
TTBOOL bAutoSave
Whether the server automatically saves changes.
AudioPreprocessorType
The types of supported audio preprocessors.
Progress is audio being injected as STREAMTYPE_VOICE.
TEAMTALKDLL_API TTBOOL TT_SetUserStoppedPlaybackDelay(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN INT32 nDelayMSec)
Set the delay of when a user should no longer be considered as playing audio (either voice or audio f...
INT32 nWidth
The width in pixels of the window.
TEAMTALKDLL_API TTBOOL TT_DBG_SetSoundInputTone(IN TTInstance *lpTTInstance, IN StreamTypes uStreamTypes, IN INT32 nFrequency)
TEAMTALKDLL_API TTBOOL TT_CloseSoundOutputDevice(IN TTInstance *lpTTInstance)
Shutdown the output sound device.
If set the client is currently streaming the audio of a media file. When streaming a video file the C...
TEAMTALKDLL_API INT32 TT_SendDesktopWindowFromHWND(IN TTInstance *lpTTInstance, IN HWND hWnd, IN BitmapFormat nBitmapFormat, IN DesktopProtocol nDesktopProtocol)
Transmit the specified window in a desktop session.
INT32 nErrorNo
Error number based on ClientError.
INT32 nStreamID
The ID of the stream. The stream id changes every time the user enables a new transmission using TT_E...
New sound device has been selected as default input device.
INT64 nDesktopBytesSent
Desktop data sent (on UDP).
Nothing is logged to file by server.
TTBOOL bVBR
Enable variable bitrate.
UINT32 DesktopKeyStates
Mask of key states.
INT32 nChannelID
The ID of the channel where the file is located.
TTBOOL bVBRConstraint
Enable constrained VBR. bVBR must be enabled to enable this.
If set the client instance is currently transmitting video.
TEAMTALKDLL_API TTBOOL TT_Mixer_GetWaveInControlSelected(IN INT32 nWaveDeviceID, IN INT32 nControlIndex)
Get the selected state of a Wave-In device in the Windows Mixer.
TTCHAR szDeviceID[TT_STRLEN]
An identifier uniquely identifying the sound device even when new sound devices are being added and r...
TEAMTALKDLL_API TTBOOL TT_Windows_GetWindow(IN HWND hWnd, OUT ShareWindow *lpShareWindow)
Get the properties of a window from its window handle (HWND).
StreamTypes uStreamTypes
The stream types used to generate the AudioBlock's raw audio.
TEAMTALKDLL_API TTBOOL TT_Firewall_RemoveAppException(IN const TTCHAR *szExecutable)
Remove an application from the Windows Firewall exception list.
INT32 nVideoFormatsCount
The number of capture formats available in videoFormats array.
TEAMTALKDLL_API VOID * TT_DBG_GETDATAPTR(IN TTMessage *pMsg)
TEAMTALKDLL_API TTBOOL TT_GetMyUserAccount(IN TTInstance *lpTTInstance, OUT UserAccount *lpUserAccount)
Get the local client instance's UserAccount.
User is allowed to create permanent channels which are stored in the server's configuration file...
TEAMTALKDLL_API INT32 TT_SendDesktopFromWindowID(IN TTInstance *lpTTInstance, IN INT64 nWindowID, IN BitmapFormat nBitmapFormat, IN DesktopProtocol nDesktopProtocol)
Transmit the specified window in a desktop session.
The SoundDevice can run in duplex mode.
DesktopProtocol
The protocols supported for transferring a DesktopWindow.
RemoteFile remotefile
Valid if ttType is __REMOTEFILE.
TEAMTALKDLL_API INT32 TT_DoMoveUser(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN INT32 nChannelID)
Issue command to move a user from one channel to another.
Media file played locally is processing.
Subscribing to broadcast text messsages.
INT64 nVideoCaptureBytesSent
Video data sent (on UDP).
INT32 nWindowX
X coordinate of window.
INT32 nMaxLoginsPerIPAddress
The maximum number of users allowed to log in with the same IP-address. 0 means disabled.
INT64 nTotalBytesRX
The number of bytes received by the server from clients.
ClientErrorMsg clienterrormsg
Valid if ttType is __CLIENTERRORMSG.
TTCHAR szDeviceName[TT_STRLEN]
The name of the sound device.
Sound system denoting invalid or not found.
TEAMTALKDLL_API INT32 TT_DoBanIPAddress(IN TTInstance *lpTTInstance, IN const TTCHAR *szIPAddress, IN INT32 nChannelID)
Issue a ban command on an IP-address user.
UserAccount useraccount
Valid if ttType is __USERACCOUNT.
INT32 nMaxOutputChannels
The maximum number of output channels.
File transfer doesn't exists.
Subscribing to channel texxt messages.
INT32 nWidth
The width in pixels of the bitmap.
INT32 nBytesRemain
Valid if ttType is __INT32.
Speex audio codec, http://www.speex.org.
The client instance logged out of the server.
TEAMTALKDLL_API TTBOOL TT_StartRecordingMuxedStreams(IN TTInstance *lpTTInstance, IN StreamTypes uStreamTypes, IN const AudioCodec *lpAudioCodec, IN const TTCHAR *szAudioFileName, IN AudioFileFormat uAFF)
Mix multiple StreamTypes into a single audio file.
A User to channel text message. Users of type USERTYPE_DEFAULT can only send this text message to the...
TTBOOL bMuteLeftSpeaker
Whether to mute left speaker in stereo playback.
TEAMTALKDLL_API INT32 TT_DoTextMessage(IN TTInstance *lpTTInstance, IN const TextMessage *lpTextMessage)
Send a text message to either a user or a channel.
TEAMTALKDLL_API TTBOOL TT_PaintDesktopWindow(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN HDC hDC, IN INT32 XDest, IN INT32 YDest, IN INT32 nDestWidth, IN INT32 nDestHeight)
Paint user's desktop window using a Windows' DC (device context).
TEAMTALKDLL_API TTBOOL TT_QueryMaxPayload(IN TTInstance *lpTTInstance, IN INT32 nUserID)
Query the maximum size of UDP data packets to the user or server.
INT32 nAudioCodecBpsLimit
Bandwidth restriction for audio codecs created by this user. This value will hold the highest bitrate...
Banned from joining a channel.
TEAMTALKDLL_API TTBOOL TT_GetUser(IN TTInstance *lpTTInstance, IN INT32 nUserID, OUT User *lpUser)
Get the user with the specified ID.
BanTypes uBanTypes
The type of ban that applies to this banned user.
INT32 nMaxIncDBSec
Used so volume should not be amplified too quickly (maximal gain increase in dB/second). Default is 12.
INT32 nTimeOutTimerVoiceMSec
Time out timer for voice stream. The maximum time in miliseconds a user can transmit voice without ch...
TEAMTALKDLL_API INT32 TT_DoRemoveChannel(IN TTInstance *lpTTInstance, IN INT32 nChannelID)
Remove a channel from a server.
Configure peer verification for encrypted connection.
INT32 nVolumeMediaFile
The user's voice volume level. Note that it's a virtual volume which is being set since the master vo...
Server has updated its settings (server name, MOTD, etc.)
TEAMTALKDLL_API TTBOOL TT_GetFileTransferInfo(IN TTInstance *lpTTInstance, IN INT32 nTransferID, OUT FileTransfer *lpFileTransfer)
Get information about an active file transfer.
AudioInputProgress audioinputprogress
Valid if ttType is __AUDIOINPUTPROGRESS.
INT32 nMaxTotalTxPerSecond
The amount of bytes per second which the server will allow for packet forwarding. If this value is ex...
INT32 nSoundInputDeviceDelayMSec
Delay of sound input device until the first audio frame is delivered (in msec).
TEAMTALKDLL_API INT32 TT_DoUnBanUser(IN TTInstance *lpTTInstance, IN const TTCHAR *szIPAddress, IN INT32 nChannelID)
Unban the user with the specified IP-address.
Maximum number of file transfers exceeded.
INT64 nWindowID
The CGWindowID.
A default user who can join channels.
Configure the audio preprocessor specified by nPreprocessor.
If set the client instance will auto position users in a 180 degree circle using 3D-sound. This option is only available with SOUNDSYSTEM_DSOUND.
INT32 nStreamID
Valid if ttType is __INT32.
User is allowed to stream audio files to channel.
struct WebRTCAudioPreprocessor WebRTCAudioPreprocessor
WebRTC's audio preprocessor.
User can kick users off the server.
TEAMTALKDLL_API TTInstance * TT_InitTeamTalkPoll(void)
Create a new TeamTalk client instance where events are 'polled' using TT_GetMessage.
SpeexCodec speex
Speex codec settings if nCodec is SPEEX_CODEC.
A struct containing the properties of a sound device for either playback or recording.
The bitmap is a 32-bit colored bitmap. The maximum size of a 32-bit bitmap is 4095 blocks of 51 by 20...
UINT32 uSampleIndex
The index of the first sample in lpRawAudio. Its value will be a multiple of nSamples. The sample index can be used to detect overflows of the internal buffer. When a user initially starts talking the nSampleIndex will be 0 and while the user is talking nSampleIndex will be greater than 0. When the user stops talking nSampleIndex will be reset to 0 again.
INT32 nQuality
A value from 0-10. If nBitRate is non-zero it will override this value.
Struct containing an error message.
User's channel text messages are logged to file by the server.
TEAMTALKDLL_API TTBOOL TT_ConnectSysID(IN TTInstance *lpTTInstance, IN const TTCHAR *szHostAddress, IN INT32 nTcpPort, IN INT32 nUdpPort, IN INT32 nLocalTcpPort, IN INT32 nLocalUdpPort, IN TTBOOL bEncrypted, IN const TTCHAR *szSystemID)
Same as TT_Connect() but the option of providing a unique system-ID.
If set the client instance current have an active desktop session, i.e. TT_SendDesktopWindow() has be...
Subscriptions uLocalSubscriptions
A bitmask of what the local user subscribes to from this user. Invoking TT_DoSubscribe() and TT_DoUns...
TEAMTALKDLL_API INT32 TT_DoQuit(IN TTInstance *lpTTInstance)
Quit from server.
#define TT_TRANSMITUSERS_MAX
SoundDeviceFeatures uSoundDeviceFeatures
Additional features available for this sound device. The sound device features can be used to enable ...
float fFixedGainFactor
Gain factor. Default: 1.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveInControlSelected(IN INT32 nWaveDeviceID, IN INT32 nControlIndex)
Set the selected state of a Wave-In device in the Windows Mixer.
TTBOOL bStereoPlayback
Playback should be done in stereo. Doing so will disable 3d-positioning.
INT32 nFrameBufferSize
The size in bytes of the buffer allocate in frameBuffer.
TEAMTALKDLL_API INT32 TT_DoJoinChannelByID(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN const TTCHAR *szPassword)
Join an existing channel.
TEAMTALKDLL_API TTBOOL TT_GetSoundDeviceEffects(IN TTInstance *lpTTInstance, OUT SoundDeviceEffects *lpSoundDeviceEffect)
Get the audio effects that are currently enabled.
TTBOOL bEnableAGC
Users should enable automatic gain control.
The SoundDevice can enable denoising. Enable denoising use property bEnableDenoising on SoundDeviceEf...
A file has been removed from a channel.
TEAMTALKDLL_API TTBOOL TT_RestartSoundSystem(void)
Reinitialize sound system (in order to detect new/removed devices).
User can update server properties.
TEAMTALKDLL_API TTBOOL TT_AutoPositionUsers(IN TTInstance *lpTTInstance)
Automatically position users using 3D-sound.
TEAMTALKDLL_API TTBOOL TT_SetUserMediaStorageDir(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN const TTCHAR *szFolderPath, IN const TTCHAR *szFileNameVars, IN AudioFileFormat uAFF)
Store user's audio to disk.
TEAMTALKDLL_API TTBOOL TT_GetChannelUsers(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN OUT User *lpUsers, IN OUT INT32 *lpnHowMany)
Get the IDs of all users in a channel.
Used internally to denote an unauthenticated user.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveOutVolume(IN INT32 nWaveDeviceID, IN MixerControl nControl, IN INT32 nVolume)
Set the volume of a Windows Mixer Wave-Out device from the 'enum' of devices.
Codec nCodec
Specifies member holds the codec settings. So far there is only one video codec to choose from...
If set the user currently streams a video file. If this flag changes the event CLIENTEVENT_USER_STATE...
TTBOOL bPassword
Whether password is required to join channel. Read-only property.
INT32 nUdpConnectRTXMSec
Client instance's interval for retransmitting UDP connect packets. UDP connect packets are only sent ...
Intercept all user text messages sent by a user. Only user-type USERTYPE_ADMIN can do this...
INT64 nMediaFileVideoBytesRecv
Video from media file data received (on UDP).
TEAMTALKDLL_API unsigned char * TT_Palette_GetColorTable(IN BitmapFormat nBmpPalette, IN INT32 nIndex)
Get RGB values of the palette for the bitmap format.
#define TT_DESKTOPINPUT_MAX
TEAMTALKDLL_API TTBOOL TT_Mixer_GetWaveInName(IN INT32 nWaveDeviceID, OUT TTCHAR szMixerName[TT_STRLEN])
Get the name of the mixer associated with a wave-in device.
User disconnected due to connection timeout is logged to file by the server.
Translate from Windows scan-code to TTKEYCODE. The Windows scan-code can be retrieved in Windows' WM_...
INT32 nUdpKeepAliveIntervalMSec
Client instance's interval between sending UDP keep alive packets. The UDP keep alive packets are use...
Speex audio codec settings for Variable Bitrate mode (VBR).
Helper for CLIENT_CONNECTING and CLIENT_CONNECTED to see if TT_Disconnect should be called...
INT64 nMediaFileVideoPacketsRecv
Number of media file video packets received from user. A video frame can consist of several video pac...
TEAMTALKDLL_API TTBOOL TT_IsChannelOperator(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN INT32 nChannelID)
Check whether user is operator of a channel.
Used for tracking when a desktop window has been transmitted to the server.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveInMute(IN INT32 nWaveDeviceID, IN TTBOOL bEnable)
Mute/unmute microphone input.
VOID TTSoundLoop
Pointer to a sound loop for testing sound devices created by TT_StartSoundLoopbackTest() ...
A custom user to user text message. Works the same way as MSGTYPE_USER.
TEAMTALKDLL_API INT32 TT_DoKickUser(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN INT32 nChannelID)
Kick user from either channel or server.
Error during file transfer.
INT64 nDesktopBytesTX
The number of bytes in desktop packets sent from the server to clients.
BitmapFormat bmpFormat
The format of the bitmap.
INT32 nEchoSuppressActive
Set maximum attenuation of the residual echo in dB when near end is active (negative number)...
User can upload files to channels.
New sound device has been selected as default output device.
TEAMTALKDLL_API TTBOOL TT_ReleaseUserDesktopWindow(IN TTInstance *lpTTInstance, IN DesktopWindow *lpDesktopWindow)
Release memory allocated by the DesktopWindow.
TEAMTALKDLL_API TTBOOL TT_HotKey_GetKeyString(IN TTInstance *lpTTInstance, IN INT32 nVKCode, OUT TTCHAR szKeyName[TT_STRLEN])
Get a string description of the virtual-key code.
INT64 nMediaFileAudioBytesSent
Audio from media file data sent (on UDP).
struct WebMVP8Codec WebMVP8Codec
WebM video codec settings.
A struct containing the properties of a text message sent by a user.
Connection to server has been lost.
A new channel has been created.
INT32 nMaxMediaFileTxPerSecond
The maximum number of bytes per second which the server will allow for media file packets...
VOID TTInstance
Pointer to a TeamTalk client instance created by TT_InitTeamTalk.
UINT32 UserStates
A bitmask based on UserState indicating a User's current state.
Command indicating success. Only used internally.
TEAMTALKDLL_API INT32 TT_DoRecvFile(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN INT32 nFileID, IN const TTCHAR *szLocalFilePath)
Download a file from the specified channel.
A new user logged on to the server.
Windows legacy audio system. Should be used on Windows Mobile.
TEAMTALKDLL_API TTBOOL TT_PaintVideoFrameEx(IN HDC hDC, IN INT32 XDest, IN INT32 YDest, IN INT32 nDestWidth, IN INT32 nDestHeight, IN INT32 XSrc, IN INT32 YSrc, IN INT32 nSrcWidth, IN INT32 nSrcHeight, IN VideoFrame *lpVideoFrame)
Paint user's video frame using a Windows' DC (device context).
User was removed from ban list is logged to file by the server.
TEAMTALKDLL_API TTBOOL TT_SwapTeamTalkHWND(IN TTInstance *lpTTInstance, IN HWND hWnd)
Replace the HWND passed as parameter to TT_InitTeamTalk with this HWND.
TEAMTALKDLL_API INT32 TT_DoUpdateChannel(IN TTInstance *lpTTInstance, IN const Channel *lpChannel)
Update a channel's properties.
TEAMTALKDLL_API HWND TT_Windows_GetDesktopActiveHWND(void)
Get the handle (HWND) of the window which is currently active (focused) on the Windows desktop...
The maximum value of recorded audio.
INT32 nTxIntervalMSec
Milliseconds of audio data before each transmission.
TEAMTALKDLL_API INT32 TT_DoPing(IN TTInstance *lpTTInstance)
Ping server and wait for server to reply.
Speex audio codec settings for Constant Bitrate mode (CBR).
TEAMTALKDLL_API INT32 TT_DoNewUserAccount(IN TTInstance *lpTTInstance, IN const UserAccount *lpUserAccount)
Issue command to create a new user account on the server.
ClientEvent nClientEvent
The event's message number.
TEAMTALKDLL_API TTBOOL TT_InitSoundDuplexDevices(IN TTInstance *lpTTInstance, IN INT32 nInputDeviceID, IN INT32 nOutputDeviceID)
Enable duplex mode where multiple audio streams are mixed into a single stream using software...
User is allowed to stream media files to channel.
Use TeamTalk's internal audio preprocessor for gain audio. Same as used for TT_SetSoundInputGainLevel...
TEAMTALKDLL_API TTBOOL TT_GetSoundDevices(IN OUT SoundDevice *lpSoundDevices, IN OUT INT32 *lpnHowMany)
Retrieve list of sound devices for recording and playback.
Users who log onto the server has none of the rights below.
INT32 nChannelID
Set to zero if nMsgType is MSGTYPE_USER or MSGTYPE_BROADCAST.
Media file being streamed to a channel is processing.
struct ClientStatistics ClientStatistics
Statistics of bandwidth usage and ping times in the local client instance.
INT64 nVoiceBytesRX
The number of bytes in audio packets received by the server from clients.
struct UserAccount UserAccount
A struct containing the properties of a user account.
TEAMTALKDLL_API AudioBlock * TT_AcquireUserAudioBlock(IN TTInstance *lpTTInstance, IN StreamTypes uStreamTypes, IN INT32 nUserID)
Extract the raw audio associated with the event CLIENTEVENT_USER_AUDIOBLOCK.
Codec
The codecs supported.
TEAMTALKDLL_API TTBOOL TT_ConnectEx(IN TTInstance *lpTTInstance, IN const TTCHAR *szHostAddress, IN INT32 nTcpPort, IN INT32 nUdpPort, IN const TTCHAR *szBindIPAddr, IN INT32 nLocalTcpPort, IN INT32 nLocalUdpPort, IN TTBOOL bEncrypted)
Bind to specific IP-address prior to connecting to server.
INT32 nToUserID
Set to zero if channel message.
TTBOOL bVerifyClientOnce
Whether to only verify client's certificate once during initial connection.
ClientFlag
Flags used to describe the the client instance current state.
TEAMTALKDLL_API TTBOOL TT_SetVoiceActivationStopDelay(IN TTInstance *lpTTInstance, IN INT32 nDelayMSec)
Set the delay of when voice activation should be stopped.
New sound output device has been selected as default communication device.
TTKeyTranslate
Translate to and from TeamTalk's intermediate key-codes (TTKEYCODE).
SoundDeviceFeature
Features available on a sound device. Checkout uSoundDeviceFeatures on SoundDevice.
FourCC
The picture format used by a capture device.
The client instance was kicked from a channel.
TEAMTALKDLL_API TTBOOL TT_GetServerUsers(IN TTInstance *lpTTInstance, IN OUT User *lpUsers, IN OUT INT32 *lpnHowMany)
Get all the users on the server.
TEAMTALKDLL_API TTBOOL TT_HotKey_Unregister(IN TTInstance *lpTTInstance, IN INT32 nHotKeyID)
Unregister a registered hotkey.
WebRTC's audio preprocessor.
Translate from TTKEYCODE to Windows scan-code.
A channel has been removed.
Speex DSP is used for specifying how recorded audio from a sound input device should be preprocessed ...
Ban szIPAddress specified in BannedUser. szIPAddress can be a regular expression, i...
TEAMTALKDLL_API TTBOOL TT_Windows_GetDesktopWindowHWND(IN INT32 nIndex, OUT HWND *lpHWnd)
Enumerate all the handles (HWND) of visible windows. Increment nIndex until the function returns FALS...
INT32 nUdpPort
The server's UDP port.
TEAMTALKDLL_API TTBOOL TT_StartVideoCaptureTransmission(IN TTInstance *lpTTInstance, IN const VideoCodec *lpVideoCodec)
Start transmitting from video capture device.
INT64 nMediaFileAudioPacketsLost
Number of media file audio packets lost from user.
SoundSystem
The supported sound systems.
INT64 nVoiceBytesRecv
Voice data received (on UDP).
TEAMTALKDLL_API INT32 TT_GetMyUserID(IN TTInstance *lpTTInstance)
Get the local client instance's user ID.
A broadcast message. Requires USERRIGHT_TEXTMESSAGE_BROADCAST.
TEAMTALKDLL_API TTBOOL TT_GetChannelFile(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN INT32 nFileID, OUT RemoteFile *lpRemoteFile)
Get information about a file which can be downloaded.
The selected AudioCodec exceeds what the server allows.
User's broadcast text messages are logged to file by the server.
INT64 nMediaFileVideoFramesRecv
Number of media file video frames received from user.
INT32 nBitRate
The bitrate at which the audio codec should output encoded audio data. Dividing it by 8 gives roughly...
TTBOOL bUseAdativeDejitter
Turns adaptive jitter buffering ON/OFF. Default is OFF.
Desktop input stream type which is keyboard or mouse input being transmitted.
#define TT_TRANSMITQUEUE_MAX
Subscribing to STREAMTYPE_VIDEOCAPTURE.
TEAMTALKDLL_API INT32 TT_DoBanUser(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN INT32 nChannelID)
Issue a ban command on a user.
struct ClientKeepAlive ClientKeepAlive
Control timers for sending keep alive information to the server.
HWND hWnd
The Windows handle of the window.
TEAMTALKDLL_API TTBOOL TT_EnableVoiceActivation(IN TTInstance *lpTTInstance, IN TTBOOL bEnable)
Enable voice activation.
The server successfully processed a command issued by the local client instance.
UINT32 StreamTypes
Mask of StreamType.
Prefered image format with the lowest bandwidth usage. A 640x480 pixel image takes up 460...
User user
Valid if ttType is __USER.
TTAudioPreprocessor ttpreprocessor
Used when nPreprocessor is TEAMTALK_AUDIOPREPROCESSOR.
AudioPreprocessor failed to initialize.
A new or updated desktop window has been received from a user.
INT64 nFileSize
The size of the file being transferred.
The server rejected a command issued by the local client instance.
Invalid password for becoming channel operator.
INT32 nWndY
Y coordinate of the window relative to the Windows desktop.
TEAMTALKDLL_API INT32 TT_GetSoundInputLevel(IN TTInstance *lpTTInstance)
Get the volume level of the current recorded audio.
#define TT_VIDEOFORMATS_MAX
User removed a channel is logged to file by the server.
INT32 nBitRate
Bitrate for encoded audio. Should be between OPUS_MIN_BITRATE and OPUS_MAX_BITRATE.
INT32 nGainLevel
A value from 0 to 32768. Default is 8000. Value is ignored if bEnableAGC is FALSE.
#define TT_CHANNELS_OPERATOR_MAX
INT32 nUdpServerSilenceSec
The number of seconds nothing has been received by the client on UDP.
TEAMTALKDLL_API INT32 TT_DoQueryServerStats(IN TTInstance *lpTTInstance)
Get the server's current statistics.
User can move users from one channel to another.
Intercept all media file data sent by a user. Only user-type USERTYPE_ADMIN can do this...
TEAMTALKDLL_API TTBOOL TT_SetSoundOutputMute(IN TTInstance *lpTTInstance, IN TTBOOL bMuteAll)
Set all users mute.
UINT32 UserRights
A bitmask based on UserRight for holding the rights users have who log on the server.
TextMsgType
Text message types.
If set the client instance's sound output device has been initialized, i.e. TT_InitSoundOutputDevice ...
INT64 nVideoCaptureBytesRX
The number of bytes in video packets received by the server from clients.
TEAMTALKDLL_API TTBOOL TT_GetClientStatistics(IN TTInstance *lpTTInstance, OUT ClientStatistics *lpClientStatistics)
Retrieve client statistics of bandwidth usage and response times.
TEAMTALKDLL_API INT32 TT_DoLeaveChannel(IN TTInstance *lpTTInstance)
Leave the current channel.
Struct used for specifying the video codec to use.
If set the user is currently talking. If this flag changes the event CLIENTEVENT_USER_STATECHANGE is ...
INT32 nGainLevel
Reference gain level to be used by all users.
A user has sent the position of the mouse cursor.
INT64 nFileSize
The size of the file.
Command cannot be performed due to missing parameter. Only used internally.
TEAMTALKDLL_API TTSoundLoop * TT_StartSoundLoopbackTest(IN INT32 nInputDeviceID, IN INT32 nOutputDeviceID, IN INT32 nSampleRate, IN INT32 nChannels, IN TTBOOL bDuplexMode, IN const SpeexDSP *lpSpeexDSP)
Perform a record and playback test of specified sound devices along with an audio configuration...
No sound device features are available on this sound device.
Cannot join channel because it has maximum number of users.
Packet reception and data statistics for a user.
AbusePrevention abusePrevent
Properties which can be set to prevent abuse of a server, e.g. limit number of commands issued...
INT32 nUserData
A user data field which can be used for additional information. The nUserData field of the User struc...
TEAMTALKDLL_API TTBOOL TT_GetChannelPath(IN TTInstance *lpTTInstance, IN INT32 nChannelID, OUT TTCHAR szChannelPath[TT_STRLEN])
Get the channel's path. Channels are separated by '/'.
INT64 nVideoCaptureBytesTX
The number of bytes in video packets sent from the server to clients.
TextMsgType nMsgType
The type of text message.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveInBoost(IN INT32 nWaveDeviceID, IN TTBOOL bEnable)
Enable and disable microphone boost.
struct TextMessage TextMessage
A struct containing the properties of a text message sent by a user.
TTMessage event queue overflowed.
TTType ttType
Specifies which member to access in the union.
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveOutVolume(IN INT32 nWaveDeviceID, IN MixerControl nControl)
Get the volume of a Windows Mixer Wave-Out device from the 'enum' of devices.
TEAMTALKDLL_API TTBOOL TT_GetUserStatistics(IN TTInstance *lpTTInstance, IN INT32 nUserID, OUT UserStatistics *lpUserStatistics)
Get statistics for data and packet reception from a user.
A new video frame from a video capture device was received from a user.
INT64 nVideoCaptureBytesRecv
Video data received (on UDP).
The login service is currently unavailable.
TEAMTALKDLL_API TTBOOL TT_GetUserByUsername(IN TTInstance *lpTTInstance, IN const TTCHAR *szUsername, OUT User *lpUser)
Get the user with the specified username.
UserStates uUserState
A bitmask of the user's current state, e.g. talking, muted, etc.
Command flooding prevented by server.
IP-address has been banned from server.
The server doesn't support the issued command.
TEAMTALKDLL_API TTBOOL TT_SetSoundOutputVolume(IN TTInstance *lpTTInstance, IN INT32 nVolume)
Set master volume.
If set the client instance has muted all users.
WCHAR TTCHAR
TeamTalk uses Unicode on Windows.
The ban applies to the channel specified in the szChannel of BannedUser. Otherwise the ban applies to...
TEAMTALKDLL_API INT32 TT_Mixer_GetMixerCount(void)
Get the number of Windows Mixers available.
TextMessage textmessage
Valid if ttType is __TEXTMESSAGE.
TEAMTALKDLL_API TTInstance * TT_InitTeamTalk(IN HWND hWnd, IN UINT32 uMsg)
Create a new TeamTalk client instance where events are posted to a HWND.
Invalid username for UserAccount.
TEAMTALKDLL_API TTBOOL TT_HotKey_InstallTestHook(IN TTInstance *lpTTInstance, IN HWND hWnd, UINT32 uMsg)
Install a test hook so the HWND will be messaged whenever a key or mouse button is pressed...
The minimum value of recorded audio.
INT32 nSamples
The number of samples in the raw audio array.
INT64 nVoiceBytesSent
Voice data sent (on UDP).
A file transfer is processing.
struct UserStatistics UserStatistics
Packet reception and data statistics for a user.
struct AudioConfig AudioConfig
Audio configuration for clients in a channel.
TEAMTALKDLL_API TTBOOL TT_GetUserJitterControl(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN JitterConfig *lpJitterConfig)
Get the de-jitter configuration for a user.
TEAMTALKDLL_API TTBOOL TT_InitVideoCaptureDevice(IN TTInstance *lpTTInstance, IN const TTCHAR *szDeviceID, IN const VideoFormat *lpVideoFormat)
Initialize a video capture device.
UINT32 uVersion
The user's client version. This property is set by the server and will not change after login...
TEAMTALKDLL_API TTBOOL TT_StopVideoCaptureTransmission(IN TTInstance *lpTTInstance)
Stop transmitting from video capture device.
struct AbusePrevention AbusePrevention
Properties to prevent server abuse.
TEAMTALKDLL_API TTBOOL TT_SetSoundInputPreprocess(IN TTInstance *lpTTInstance, IN const SpeexDSP *lpSpeexDSP)
Enable sound preprocessor which should be used for processing audio recorded by the sound input devic...
If set the client instance is currently muxing audio streams into a single file. This is enabled by c...
struct BannedUser BannedUser
A struct containing the properties of a banned user.
struct OpusCodec OpusCodec
OPUS audio codec settings. For detailed information about the OPUS codec check out http://www...
INT32 nChannelID
The channel which the user is currently participating in. 0 if none. This value can change as a resul...
User can make other users channel operator.
TEAMTALKDLL_API INT32 TT_Mixer_GetWaveInSelected(IN INT32 nWaveDeviceID, IN MixerControl nControl)
Get the selected state of a Windows Mixer Wave-In device from the 'enum' of devices.
StreamType
The types of streams which are available for transmission.
DesktopKeyState
The state of a key (or mouse button), i.e. if it's pressed or released.
A media file recording has changed status.
TEAMTALKDLL_API TTBOOL TT_CloseSoundLoopbackTest(IN TTSoundLoop *lpTTSoundLoop)
Stop recorder and playback test.
Connected successfully to the server.
float fInitialSaturationMarginDB
A sound output device failed.
TEAMTALKDLL_API TTBOOL TT_Mixer_SetWaveInSelected(IN INT32 nWaveDeviceID, IN MixerControl nControl)
Set the selected state of a Windows Mixer Wave-In device from the 'enum' of devices.
TEAMTALKDLL_API INT32 TT_DoChannelOpEx(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN INT32 nChannelID, IN const TTCHAR *szOpPassword, IN TTBOOL bMakeOperator)
Make another user operator of a channel using the szOpPassword of Channel.
SoundDevice sounddevice
Valid if ttType is __SOUNDDEVICE.
struct VideoCodec VideoCodec
Struct used for specifying the video codec to use.
TEAMTALKDLL_API DesktopWindow * TT_AcquireUserDesktopWindow(IN TTInstance *lpTTInstance, IN INT32 nUserID)
Acquire a user's desktop window (bitmap image).
struct DesktopInput DesktopInput
A struct containing a mouse or keyboard event.
struct AudioCodec AudioCodec
Struct used for specifying which audio codec a channel uses.
TEAMTALKDLL_API TTBOOL TT_InitSoundOutputSharedDevice(IN INT32 nSampleRate, IN INT32 nChannels, IN INT32 nFrameSize)
Setup sample rate, channels and frame size of shared sound output device.
User can add and remove banned users.
Voice and video transmission in the channel is controlled by a channel operator.
The SoundDevice can enable Acoustic Echo Canceler (AEC). Enable AEC use property bEnableAEC on SoundD...
TTBOOL bStereoPlayback
Playback should be done in stereo. Doing so will disable 3d-positioning.
The bitmap is a 256-colored bitmap requiring a palette. The default 256 colored palette is the Netsca...
INT32 nTcpPingTimeMs
Response time to server on TCP (based on ping/pong sent at a specified interval. Set to -1 if not cur...
TTBOOL bKeyFrame
Whether the image acquired is a key-frame. If it is not a key-frame and there has been packet loss or...
TEAMTALKDLL_API INT32 TT_SendDesktopWindow(IN TTInstance *lpTTInstance, IN const DesktopWindow *lpDesktopWindow, IN BitmapFormat nConvertBmpFormat)
Transmit a desktop window (bitmap) to users in the same channel.
INT64 nDiskQuota
Number of bytes available for file storage.
User is allowed to stream video files to channel.
struct SoundDeviceEffects SoundDeviceEffects
Set up audio effects supported by the sound device.
If set the client instance is currently transmitting a desktop window. A desktop window update is iss...
User's status is logged to file by the server.
Failed to connect to server.
A RGB32 image where the pixels can be accessed directly in an allocated frameBuffer.
A struct which describes the properties of a window which can be shared.
INT32 nMaxUsers
Max number of users in channel.
struct VideoCaptureDevice VideoCaptureDevice
A struct containing the properties of a video capture device.
Same as SOUNDSYSTEM_AUDIOUNIT.
Banned IP-address does not exist.
struct VideoFormat VideoFormat
A struct containing the properties of a video capture format.
struct ServerStatistics ServerStatistics
A struct containing the server's statistics, i.e. bandwidth usage and user activity.
Same as INTERR_AUDIOPREPROCESSOR_INIT_FAILED.
Failed to connect to server due to encryption error.
struct Channel Channel
A struct containing the properties of a channel.
Configuration parameters for the Jitter Buffer.
INT32 nStoppedDelayMediaFile
The delay of when a user should no longer be considered playing audio of a media file.
TEAMTALKDLL_API INT32 TT_GetRootChannelID(IN TTInstance *lpTTInstance)
Get the root channel's ID.
User joined a channel is logged to file by the server.
TEAMTALKDLL_API TTBOOL TT_DBG_WriteAudioFileTone(IN const MediaFileInfo *lpMediaFileInfo, IN INT32 nFrequency)
INT32 nTransmitUsersQueueDelayMSec
Delay for switching to next active voice user in transmitUsersQueue.
INT32 nStoppedDelayVoice
The delay of when a user should no longer be considered as talking.
INT32 outputSampleRates[TT_SAMPLERATES_MAX]
Supported sample rates by device for playback. A zero value terminates the list of supported sample r...
MediaFileInfo mediafileinfo
Valid if ttType is __MEDIAFILEINFO.
INT32 nUserData
The nUserData of the user's UserAccount. This field can be use to denote e.g. a database ID...
SpeexVBRCodec speex_vbr
Speex codec settings if nCodec is SPEEX_VBR_CODEC.
INT32 nFixedDelayMSec
The fixed delay in milliseconds. Default = 0.
INT32 nLoginDelayMSec
Number of msec before an IP-address can make another login attempt. If less than this amount then TT_...
INT32 nVolumeVoice
The user's voice volume level. Note that it's a virtual volume which is being set since the master vo...
Internal use to denote no supported formats.
A user account has been created.
TEAMTALKDLL_API TTBOOL TT_GetMessage(IN TTInstance *lpTTInstance, OUT TTMessage *pMsg, IN const INT32 *pnWaitMs)
Poll for events in the client instance.
A struct containing the properties of a banned user.
float fMaxOutputNoiseLevelDBFS
INT64 nMediaFileBytesRX
The number of bytes in media file packets received by the server from clients.
UserRight
The rights users have once they have logged on to the server.
Cannot find user account.
Channel text messages as stream type.
TEAMTALKDLL_API TTBOOL TT_GetServerProperties(IN TTInstance *lpTTInstance, OUT ServerProperties *lpServerProperties)
Get the server's properties.
INT32 nMaxLoginAttempts
The maximum number of logins with wrong password before banning user's IP-address.
If set the client instance is running in sound duplex mode where multiple audio output streams are mi...
TEAMTALKDLL_API TTBOOL TT_GetServerChannels(IN TTInstance *lpTTInstance, IN OUT Channel *lpChannels, IN OUT INT32 *lpnHowMany)
Get all the channels on the server.
INT32 nDefaultSampleRate
The default sample rate for the sound device.
ClientError
Errors which can occur either as a result of client commands or as a result of internal errors...
Only channel operators (and administrators) will receive audio/video/desktop transmissions. Default channel users will only see transmissions from operators and/or administrators.
TEAMTALKDLL_API UserTypes TT_GetMyUserType(IN TTInstance *lpTTInstance)
Get the client instance's user type.
TEAMTALKDLL_API TTBOOL TT_CloseSoundInputDevice(IN TTInstance *lpTTInstance)
Shutdown the input sound device.
struct DesktopWindow DesktopWindow
A struct containing the properties of a shared desktop window.
TEAMTALKDLL_API TTBOOL TT_Mixer_GetWaveOutName(IN INT32 nWaveDeviceID, OUT TTCHAR szMixerName[TT_STRLEN])
Get the name of the mixer associated with a wave-out device.
If set the client instance is logged on to a server, i.e. got CLIENTEVENT_CMD_MYSELF_LOGGEDIN event a...
New sound input device has been selected as default communication device.
Video capture stream type which is video recorded from a webcam.
TEAMTALKDLL_API INT32 TT_DesktopInput_Execute(IN const DesktopInput *lpDesktopInputs, IN INT32 nDesktopInputCount)
Execute desktop (mouse or keyboard) input.
ChannelType
The types of channels supported.
If set the user's voice is muted.
INT32 nUsersPeak
The highest numbers of users online.
Subscribing to user text messages.
TEAMTALKDLL_API TTBOOL TT_GetVideoCaptureDevices(IN OUT VideoCaptureDevice *lpVideoDevices, IN OUT INT32 *lpnHowMany)
Get the list of devices available for video capture.
If set the client instance is currently try to connect to a server, i.e. TT_Connect has been called...
TEAMTALKDLL_API TTBOOL TT_InitSoundInputDevice(IN TTInstance *lpTTInstance, IN INT32 nInputDeviceID)
Initialize the sound input device (for recording audio).
TEAMTALKDLL_API TTBOOL TT_StartRecordingMuxedAudioFileEx(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN const TTCHAR *szAudioFileName, IN AudioFileFormat uAFF)
Store audio conversations from a specific channel into a single file.
UserState
The possible states for a user. Used for User's uUserState variable.
DesktopProtocol nProtocol
The desktop protocol used for transmitting the desktop window.
Users are allowed to forward audio packets through server. TT_EnableVoiceTransmission() ...
User updated server's properties is logged to file by the server.
BannedUser banneduser
Valid if ttType is __BANNEDUSER.
An internal error occurred in the client instance.
TEAMTALKDLL_API INT32 TT_DoJoinChannel(IN TTInstance *lpTTInstance, IN const Channel *lpChannel)
Create a new channel and join it.
A struct containing the properties of a user.
TEAMTALKDLL_API TTBOOL TT_CloseVideoCaptureDevice(IN TTInstance *lpTTInstance)
Close a video capture device.
VOID * frameBuffer
A buffer allocated internally by client instance.
AudioConfig audiocfg
The audio configuration which users who join the channel should use.
INT64 nPID
The PID of the owning process.
TEAMTALKDLL_API TTBOOL TT_SetUserVolume(IN TTInstance *lpTTInstance, IN INT32 nUserID, IN StreamType nStreamType, IN INT32 nVolume)
Set the volume of a user.
OPUS audio codec settings. For detailed information about the OPUS codec check out http://www...
StreamType nStreamType
Valid if ttType is __STREAMTYPE.
SoundDeviceEffects failed to initialize.
INT32 nApplication
Application of encoded audio, i.e. VoIP or music.
INT32 nMaxGainDB
Ensure volume doesn't become too loud (maximal gain in dB). Default is 30. Value is ignored if bEnabl...
INT32 nFromUserID
Will be set automatically on outgoing message.
TEAMTALKDLL_API TTBOOL TT_GetDefaultSoundDevicesEx(IN SoundSystem nSndSystem, OUT INT32 *lpnInputDeviceID, OUT INT32 *lpnOutputDeviceID)
Get the default sound devices for the specified sound system.
struct SoundDevice SoundDevice
A struct containing the properties of a sound device for either playback or recording.
BitmapFormat
The bitmap format used for a DesktopWindow.
The maximum number of channels has been exceeded.
A client logged out of the server.
User can send private text messages, i.e. MSGTYPE_USER.
TEAMTALKDLL_API TTBOOL TT_InitSoundInputSharedDevice(IN INT32 nSampleRate, IN INT32 nChannels, IN INT32 nFrameSize)
Setup sample rate, channels and frame size of shared sound input device.
ServerProperties serverproperties
Valid if ttType is __SERVERPROPERTIES.
INT32 nActiveAdaptiveDelayMSec
the currently active adaptive jitter delay for received voice streams for this user.
If set the user currently streams an audio file. If user is streaming a video file with audio then th...
TEAMTALKDLL_API INT32 TT_DoDeleteFile(IN TTInstance *lpTTInstance, IN INT32 nChannelID, IN INT32 nFileID)
Delete a file from a channel.
New sound device available.
INT32 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...
If set the user currently has an active desktop session. If this flag changes the event CLIENTEVENT_U...
INT32 nMaxVoiceTxPerSecond
The maximum number of bytes per second which the server will allow for voice packets. If this value is exceeded the server will start dropping audio packets. 0 = disabled.
A user has joined a channel.
ClientEvent
TeamTalk client event messages.
INT64 nDesktopBytesRX
The number of bytes in desktop packets received by the server from clients.
INT32 nHeight
The height in pixels of the bitmap.
INT32 nBytesPerLine
The number of bytes for each scan-line in the bitmap. Zero means 4-byte aligned.
TEAMTALKDLL_API TTBOOL TT_Mixer_GetWaveInControlName(IN INT32 nWaveDeviceID, IN INT32 nControlIndex, OUT TTCHAR szDeviceName[TT_STRLEN])
Get the name of the Wave-In device with the specified index.
TTBOOL bMuteRightSpeaker
Whether to mute right speaker in stereo playback.
Stream type for audio of local playback.
INT32 nHeight
The height in pixels of the image contained in imageBuffer.
INT64 nMediaFileBytesTX
The number of bytes in media file packets sent from the server to clients.
INT32 nComplexity
Complexity of encoding (affects CPU usage). Value from 0-10.
User's nick name is locked. TT_DoChangeNickname() cannot be used and TT_DoLogin() will ignore szNickn...
TEAMTALKDLL_API INT32 TT_DoChangeNickname(IN TTInstance *lpTTInstance, IN const TTCHAR *szNewNick)
Change the client instance's nick name.
Login failed due to maximum number of users on server.
TEAMTALKDLL_API TTBOOL TT_SetSoundInputGainLevel(IN TTInstance *lpTTInstance, IN INT32 nLevel)
Set voice gaining of recorded audio.
A struct containing the properties of a file transfer.
TTBOOL bFEC
Forward error correction. Corrects errors if there's packetloss.
Cannot apply CHANNEL_HIDDEN to Channel's type.
Video stream type from a media file which is being streamed.
TEAMTALKDLL_API INT32 TT_DoListUserAccounts(IN TTInstance *lpTTInstance, IN INT32 nIndex, IN INT32 nCount)
Issue command to list user accounts on the server.
Shortcut to allow voice, media files, desktop, webcamera and channel messages.
TTBOOL bEnable
Enable pre-amplifier. Replacement for TT_SetSoundInputGainLevel()
User's private text messages are logged to file by the server.
The client instance successfully logged on to server.
Codec nCodec
Specifies whether the member speex, speex_vbr or opus holds the codec settings.
INT32 nUserData
User specific data which will be stored on persistent storage on the server if the channel type is CH...
INT32 nRcTargetBitrate
Same as rc_target_bitrate.
A struct containing the properties of a channel.
INT64 nMediaFileAudioPacketsRecv
Number of media file audio packets received from user.
INT32 nFrameBufferSize
The size in bytes of the buffer allocate in frameBuffer. Typically nBytesPerLine * nHeight...
TEAMTALKDLL_API TTBOOL TT_SetEncryptionContext(IN TTInstance *lpTTInstance, const EncryptionContext *lpEncryptionContext)
Setup encryption properties prior to TT_Connect().
Control timers for sending keep alive information to the server.
TEAMTALKDLL_API INT32 TT_GetVoiceActivationStopDelay(IN TTInstance *lpTTInstance)
Get the delay of when voice active state should be disabled.
TEAMTALKDLL_API TTBOOL TT_InitSoundOutputDevice(IN TTInstance *lpTTInstance, IN INT32 nOutputDeviceID)
Initialize the sound output device (for audio playback).
A struct containing the properties of a user account.
An audio block containing the raw audio from a user who was talking.
TTBOOL bDTX
Enable/disable discontinuous transmission. When enabled Speex will ignore silence, so the bitrate will become very low.
INT32 inputSampleRates[TT_SAMPLERATES_MAX]
Supported sample rates by device for recording. A zero value terminates the list of supported sample ...
TEAMTALKDLL_API INT32 TT_DoSaveConfig(IN TTInstance *lpTTInstance)
Save the server's current state to its settings file (typically the server's .xml file)...
User left a channel is logged to file by the server.
INT32 nQuality
A value from 1-10. As of DLL version 4.2 also 0 is supported.
User was moved to another channel is logged to file by the server.
Voice stream type which is audio recorded from a sound input device.
ServerLogEvents uServerLogEvents
The events that are logged on the server.
struct TTAudioPreprocessor TTAudioPreprocessor
Use TeamTalk's internal audio preprocessor for gain audio. Same as used for TT_SetSoundInputGainLevel...
INT64 nFilesTx
The number of bytes for file transmission transmitted from the server.
INT32 nCommandsLimit
Limit number of commands a user can send to the server.
struct RemoteFile RemoteFile
A struct containing the properties of a file in a Channel.
UINT32 UserTypes
A bitmask based on UserType describing the user type.
INT32 nSource
The source of the event depends on wmMsg.
FileTransferStatus nStatus
Status of file transfer.
Statistics of bandwidth usage and ping times in the local client instance.
TTBOOL bEnableEchoCancellation
Enable echo cancellation.