AgoraAudioRawFrameOperationMode Constants Reference

Declared in AgoraEnumerates.h

AgoraAudioRawFrameOperationMode

Use mode of the onRecordAudioFrame callback.

Definition

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

Constants

AgoraAudioRawFrameOperationModeReadOnly

Read-only mode: Users only read the AudioFrame data without modifying anything. For example, when users acquire data with the Agora SDK then push the RTMP streams.

Declared In AgoraEnumerates.h.

AgoraAudioRawFrameOperationModeWriteOnly

Write-only mode: Users replace the AudioFrame data with their own data and pass them to the SDK for encoding. For example, when users acquire data.

Declared In AgoraEnumerates.h.

AgoraAudioRawFrameOperationModeReadWrite

Read and write mode: Users read the data from AudioFrame, modify it, and then play it. For example, when users have their own sound-effect processing module and perform some voice pre-processing such as a voice change.

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h