Package io.agora.rtc2

Interface IAudioEncodedFrameObserver


public interface IAudioEncodedFrameObserver
  • Method Details

    • onRecordAudioEncodedFrame

      void onRecordAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType)
      Parameters:
      buffer - The audio buffer.
      samplesPerChannel - The number of samples per channel in the audio frame.
      channels - The number of channels. - 1: Mono. - 2: Stereo. If the channel uses stereo, the data is interleaved.
      samplesPerSec - Recording sample rate (Hz).
      codecType - Audio encoding type: - AUDIO_CODEC_OPUS (1): OPUS. - AUDIO_CODEC_AACLC (8): LC-AAC. - AUDIO_CODEC_HEAAC (9): HE-AAC. - AUDIO_CODEC_HEAAC2 (11): HE-AAC v2.
    • onPlaybackAudioEncodedFrame

      void onPlaybackAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType)
      Parameters:
      buffer - The audio buffer.
      samplesPerChannel - The number of samples per channel in the audio frame.
      channels - The number of channels. - 1: Mono. - 2: Stereo. If the channel uses stereo, the data is interleaved.
      samplesPerSec - Recording sample rate (Hz).
      codecType - Audio encoding type: - AUDIO_CODEC_OPUS (1): OPUS. - AUDIO_CODEC_AACLC (8): LC-AAC. - AUDIO_CODEC_HEAAC (9): HE-AAC. - AUDIO_CODEC_HEAAC2 (11): HE-AAC v2.
    • onMixedAudioEncodedFrame

      void onMixedAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType)
      Parameters:
      buffer - The audio buffer.
      samplesPerChannel - The number of samples per channel in the audio frame.
      channels - The number of channels. - 1: Mono. - 2: Stereo. If the channel uses stereo, the data is interleaved.
      samplesPerSec - Recording sample rate (Hz).
      codecType - Audio encoding type: - AUDIO_CODEC_OPUS (1): OPUS. - AUDIO_CODEC_AACLC (8): LC-AAC. - AUDIO_CODEC_HEAAC (9): HE-AAC. - AUDIO_CODEC_HEAAC2 (11): HE-AAC v2.