TeamTalk 5 .NET DLL Version 5.15A
|
An audio block containing the raw audio from a user who was talking. More...
Public Attributes | |
int | nStreamID |
The ID of the stream. The stream id changes every time the user enables a new transmission using TeamTalkBase.EnableVoiceTransmission() or through voice activation. | |
int | nSampleRate |
The sample rate of the raw audio. | |
int | nChannels |
The number of channels used (1 for mono, 2 for stereo). | |
System.IntPtr | lpRawAudio |
The raw audio in 16-bit integer format array. The size of the array in bytes is sizeof(short) * nSamples * nChannels . | |
int | nSamples |
The number of samples in the raw audio array. | |
uint | 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. | |
StreamType | uStreamTypes |
The stream types used to generate the AudioBlock's raw audio. | |
An audio block containing the raw audio from a user who was talking.
To enable audio blocks first call TeamTalkBase.EnableAudioBlockEvent() then whenever new audio is played the event TeamTalkBase.OnUserAudioBlock() is generated. Use TeamTalkBase.AcquireUserAudioBlock() to retrieve the audio block.
Note that each user is limited to 128 kbytes of audio data.
Definition at line 474 of file TeamTalk.cs.
int BearWare.AudioBlock.nStreamID |
The ID of the stream. The stream id changes every time the user enables a new transmission using TeamTalkBase.EnableVoiceTransmission() or through voice activation.
Definition at line 479 of file TeamTalk.cs.
int BearWare.AudioBlock.nSampleRate |
The sample rate of the raw audio.
Definition at line 481 of file TeamTalk.cs.
int BearWare.AudioBlock.nChannels |
The number of channels used (1 for mono, 2 for stereo).
Definition at line 483 of file TeamTalk.cs.
System.IntPtr BearWare.AudioBlock.lpRawAudio |
The raw audio in 16-bit integer format array. The size of the array in bytes is sizeof(short)
* nSamples
* nChannels
.
Definition at line 487 of file TeamTalk.cs.
int BearWare.AudioBlock.nSamples |
The number of samples in the raw audio array.
Definition at line 489 of file TeamTalk.cs.
uint BearWare.AudioBlock.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.
Definition at line 497 of file TeamTalk.cs.
StreamType BearWare.AudioBlock.uStreamTypes |
The stream types used to generate the AudioBlock's raw audio.
When retrieving audio that has been mixed together from multiple sources it can be useful to know what stream types were mixed together to generate the AudioBlock.
If 'uStreamTypes' is BearWare.StreamType.STREAMTYPE_NONE it means that silence was inserted. Silence is inserted if no audio was available for mixing or the duration from last audio packet was received and until nStoppedDelayVoice
of BearWare.User has expired.
Definition at line 510 of file TeamTalk.cs.