AgoraAudioRawFrameOperationMode Constants Reference

Declared in AgoraEnumerates.h


The use mode of the audio data.


typedef NS_ENUM(NSInteger, AgoraAudioRawFrameOperationMode ) {
   AgoraAudioRawFrameOperationModeReadOnly = 0,
   AgoraAudioRawFrameOperationModeWriteOnly = 1,
   AgoraAudioRawFrameOperationModeReadWrite = 2,



0: (Default) Read-only mode, in which users can only read the AgoraAudioFrame without modifying anything. For example, this mode applies when users acquire data with the Agora SDK and then push the RTMP or RTMPS streams.

Declared In AgoraEnumerates.h.


1: Write-only mode, in which users replace the AgoraAudioFrame with their own data and then pass it to the SDK for encoding. For example, this mode applies when users need the Agora SDK to encode and transmit their custom audio data.

Declared In AgoraEnumerates.h.


2: Read and write mode, in which users read the AgoraAudioFrame, modify it, and then play it. For example, this mode applies when users have their own sound-effect processing module to pre-process the audio (such as a voice changer).

Declared In AgoraEnumerates.h.

Declared In