AgoraAudioRawFrameOperationMode Constants Reference
Declared in | AgoraEnumerates.h |
---|
AgoraAudioRawFrameOperationMode
The use mode of the audio data.
Definition
typedef NS_ENUM(NSInteger, AgoraAudioRawFrameOperationMode ) {
AgoraAudioRawFrameOperationModeReadOnly = 0,
AgoraAudioRawFrameOperationModeWriteOnly = 1,
AgoraAudioRawFrameOperationModeReadWrite = 2,
};
Constants
AgoraAudioRawFrameOperationModeReadOnly
-
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
. AgoraAudioRawFrameOperationModeWriteOnly
-
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
. AgoraAudioRawFrameOperationModeReadWrite
-
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
AgoraEnumerates.h