Agora Java API Reference for Android

Public Member Functions | List of all members
agora::rtc::IAudioSinkBase Class Referenceabstract

`#include <NGIAgoraMediaNode.h>`

Inheritance diagram for agora::rtc::IAudioSinkBase:

## Public Member Functions
virtual bool | onAudioFrame (const media::base::AudioPcmFrame &audioFrame)=0
Public Member Functions inherited from agora::RefCountInterface
virtual void | AddRef () const =0
virtual RefCountReleaseStatus | Release () const =0
virtual bool | HasOneRef () const =0

## Detailed Description

The `IAudioSinkBase` class is the base class for the audio sink. You can use this class to implement your own sink and add the sink to an audio track.

## Member Function Documentation

## ◆ onAudioFrame()

virtual bool agora::rtc::IAudioSinkBase::onAudioFrame | ( | const media::base::AudioPcmFrame & | audioFrame | ) |
| pure virtual

Gets the audio frame.

Parameters

  audioframe | AudioPcmFrame

Returns
  - `true`: Success.
  - `false`: Failure.