Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration RAW_AUDIO_FRAME_OP_MODE_TYPE

The use mode of the audio data in the [onRecordAudioFrame]{@link agora.onRecordAudioFrame} or [onPlaybackAudioFrame]{@link agora.onPlaybackAudioFrame} callback.

Index

Enumeration members

RAW_AUDIO_FRAME_OP_MODE_READ_ONLY

RAW_AUDIO_FRAME_OP_MODE_READ_ONLY: = 0

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.

RAW_AUDIO_FRAME_OP_MODE_READ_WRITE

RAW_AUDIO_FRAME_OP_MODE_READ_WRITE: = 2

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.

RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY

RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY: = 1

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