Server Gateway SDK v3.8.202.20 for Linux C++
|
#include <NGIAgoraRtcConnection.h>
Public Member Functions | |
AudioSubscriptionOptions () | |
AudioSubscriptionOptions (const AudioSubscriptionOptions &rhs) | |
AudioSubscriptionOptions & | operator= (const AudioSubscriptionOptions &rhs) |
Public Attributes | |
bool | packetOnly |
size_t | bytesPerSample |
size_t | numberOfChannels |
uint32_t | sampleRateHz |
The audio subscription options.
|
inline |
|
inline |
|
inline |
size_t agora::rtc::AudioSubscriptionOptions::bytesPerSample |
The number of bytes that you expect for each audio sample.
size_t agora::rtc::AudioSubscriptionOptions::numberOfChannels |
The number of audio channels that you expect.
bool agora::rtc::AudioSubscriptionOptions::packetOnly |
Whether to only subscribe to audio packets.
true
: Only subscribe to audio packets, which means that the SDK does not decode the remote audio stream. You can use this mode to receive audio packets and handle them in your app.false
: (Default) The SDK automatically decodes the remote audio stream.packetOnly
as true
, other fields in AudioSubscriptionOptions
are ignored. uint32_t agora::rtc::AudioSubscriptionOptions::sampleRateHz |
The audio sample rate (Hz) that you expect.