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 | ( |  | ) |
| inlineprotected

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

## ◆ Release()

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

## ◆ HasOneRef()

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