BearWare.AudioBlock Struct Reference
[Sound Capture and Playback]

An audio block containing the raw audio from a user who was talking. More...

List of all members.

Public Attributes

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.

Detailed Description

An audio block containing the raw audio from a user who was talking.

To enable audio blocks first call TT_EnableAudioBlockEvent() then whenever new audio is played the event TeamTalk4.OnUserAudioBlock() is generated. Use TeamTalk4.AcquireUserAudioBlock() to retrieve the audio block.

Note that each user is limited to 128 kbytes of audio data.

See also:
TeamTalk4.EnableAudioBlockEvent()
TeamTalk4.AcquireUserAudioBlock()
TeamTalk4.ReleaseUserAudioBlock()

Member Data Documentation

The sample rate of the raw audio.

The number of channels used (1 for mono, 2 for stereo).

The raw audio in 16-bit integer format array. The size of the array in bytes is sizeof(short) * nSamples * nChannels.

The number of samples in the raw audio array.

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.

Generated on Sun Mar 18 17:16:15 2012 for TeamTalk 4 .NET DLL by  doxygen 1.6.3