io.agora.rtc

## Interface IAudioSink

-     public interface IAudioSink

  Interface for audio sink callbacks.

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default int` | `onAudioFrame(AgoraAudioSink agora_audio_sink, AudioPcmFrame frame)` Called when an audio frame is received.

- - ### Method Detail

    - #### onAudioFrame

          default int onAudioFrame(AgoraAudioSink agora_audio_sink,
                                   AudioPcmFrame frame)

      Called when an audio frame is received.
      Parameters:
        `agora_audio_sink` - The audio sink instance
        `frame` - The audio PCM frame
      Returns:
        0 on success, non-zero on failure