Agora RTC Objective-C API Reference Refactor

Public Member Functions
IAudioSinkBase Class Referenceabstract

Inherits RefCountInterface.

## Public Member Functions
virtual bool | onAudioFrame (const media::base::AudioPcmFrame &audioFrame)=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.

## Constructor & Destructor Documentation

## ◆ ~IAudioSinkBase()

~IAudioSinkBase | ( |  | ) |
| inline protected

## Member Function Documentation

## ◆ onAudioFrame()

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

Gets the audio frame.

Parameters

  audioframe | AudioPcmFrame

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

## ◆ AddRef()

virtual void AddRef | ( |  | ) | const
| pure virtual inherited

## ◆ Release()

virtual RefCountReleaseStatus Release | ( |  | ) | const
| pure virtual inherited

## ◆ HasOneRef()

virtual bool HasOneRef | ( |  | ) | const
| pure virtual inherited