Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
agora::rtc::IAudioSinkBase Class Referenceabstract

`#include <NGIAgoraMediaNode.h>`

Inherits agora::RefCountInterface.

## 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

## Protected Member Functions
| ~IAudioSinkBase ()
Protected Member Functions inherited from agora::RefCountInterface
virtual | ~RefCountInterface ()

## 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.

## Constructor & Destructor Documentation

## ◆ ~IAudioSinkBase()

agora::rtc::IAudioSinkBase::~IAudioSinkBase | ( |  | ) |
| inline protected

## 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.