AUDIO_TRACK_TYPE

Audio track type.

Enumerations

AUDIO_TRACK_INVALID
(-1): Invalid audio track.
AUDIO_TRACK_MIXABLE
(0): Mixable audio track. Supports mixing with other audio streams (such as microphone-captured audio) and playing locally or publishing to the channel after mixing. This type of audio track has higher latency than direct audio tracks.
AUDIO_TRACK_DIRECT
(1): Direct audio track. Replaces the microphone-captured audio stream and does not support mixing with other audio streams. This type of audio track has lower latency than mixable audio tracks.
Note: If this parameter is set to AUDIO_TRACK_DIRECT, you must set publishMicrophoneTrack in ChannelMediaOptions to false when calling joinChannel(const char* token, const char* channelId, uid_t uid, const ChannelMediaOptions& options) to join a channel. Otherwise, joining the channel will fail and return error code -2.