TeamTalk 5 .NET DLL  Version 5.14A
BearWare.SpeexVBRCodec Struct Reference

Speex audio codec settings for Variable Bitrate mode (VBR). More...

Public Attributes

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 band). More...
 
int nQuality
 A value from 0-10. If nBitRate is non-zero it will override this value. More...
 
int nBitRate
 The bitrate at which the audio codec should output encoded audio data. Dividing it by 8 gives roughly the number of bytes per second used for transmitting the encoded data. For limits check out BearWare.SpeexConstants. Note that specifying nBitRate will override nQuality. More...
 
int nMaxBitRate
 The maximum bitrate at which the audio codec is allowed to output audio. Set to zero if it should be ignored. More...
 
bool bDTX
 Enable/disable discontinuous transmission. When enabled Speex will ignore silence, so the bitrate will become very low. More...
 
int nTxIntervalMSec
 Milliseconds of audio data before each transmission. More...
 
bool bStereoPlayback
 Playback should be done in stereo. Doing so will disable 3d-positioning. More...
 

Detailed Description

Speex audio codec settings for Variable Bitrate mode (VBR).

Deprecated:
Use BearWare.OpusCodec.

Definition at line 940 of file TeamTalk.cs.

Member Data Documentation

◆ nBandmode

int BearWare.SpeexVBRCodec.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 band).

Definition at line 944 of file TeamTalk.cs.

◆ nQuality

int BearWare.SpeexVBRCodec.nQuality

A value from 0-10. If nBitRate is non-zero it will override this value.

Definition at line 947 of file TeamTalk.cs.

◆ nBitRate

int BearWare.SpeexVBRCodec.nBitRate

The bitrate at which the audio codec should output encoded audio data. Dividing it by 8 gives roughly the number of bytes per second used for transmitting the encoded data. For limits check out BearWare.SpeexConstants. Note that specifying nBitRate will override nQuality.

Definition at line 954 of file TeamTalk.cs.

◆ nMaxBitRate

int BearWare.SpeexVBRCodec.nMaxBitRate

The maximum bitrate at which the audio codec is allowed to output audio. Set to zero if it should be ignored.

Definition at line 958 of file TeamTalk.cs.

◆ bDTX

bool BearWare.SpeexVBRCodec.bDTX

Enable/disable discontinuous transmission. When enabled Speex will ignore silence, so the bitrate will become very low.

Definition at line 962 of file TeamTalk.cs.

◆ nTxIntervalMSec

int BearWare.SpeexVBRCodec.nTxIntervalMSec

Milliseconds of audio data before each transmission.

Speex uses 20 msec frame sizes. Recommended is 40 msec. Min is 20, max is 500 msec.

The BearWare.SoundSystem must be able to process audio packets at this interval. In most cases this makes less than 40 msec transmission interval unfeasible.

Definition at line 971 of file TeamTalk.cs.

◆ bStereoPlayback

bool BearWare.SpeexVBRCodec.bStereoPlayback

Playback should be done in stereo. Doing so will disable 3d-positioning.

See also
TeamTalkBase.SetUserPosition
TeamTalkBase.SetUserStereo

Definition at line 977 of file TeamTalk.cs.