Agora RTC Objective-C API Reference
Refactor
|
Data Fields | |
bool | packetOnly |
size_t | bytesPerSample |
size_t | numberOfChannels |
uint32_t | sampleRateHz |
The audio subscription options.
|
inline |
|
inline |
|
inline |
bool 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. size_t bytesPerSample |
The number of bytes that you expect for each audio sample.
size_t numberOfChannels |
The number of audio channels that you expect.
uint32_t sampleRateHz |
The audio sample rate (Hz) that you expect.