0: Read-only mode: Users only read the [AudioFrame]{@link agora.AudioFrame} data without modifying anything. For example, when users acquire the data with the Agora SDK, then push the RTMP streams.
2: Read and write mode: Users read the data from [AudioFrame]{@link agora.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.
1: Write-only mode: Users replace the [AudioFrame]{@link agora.AudioFrame} data with their own data and pass the data to the SDK for encoding. For example, when users acquire the data.
Generated using TypeDoc
The use mode of the audio data in the [onRecordAudioFrame]{@link agora.onRecordAudioFrame} or [onPlaybackAudioFrame]{@link agora.onPlaybackAudioFrame} callback.