Server Gateway SDK v3.8.202.20 for Linux C++
Public Member Functions | Protected Member Functions | List of all members
agora::rtc::IAudioSinkBase Class Referenceabstract

#include <NGIAgoraMediaNode.h>

Public Member Functions

virtual bool onAudioFrame (const media::base::AudioPcmFrame &audioFrame)=0

Protected Member Functions

 ~IAudioSinkBase ()

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

Member Function Documentation

◆ onAudioFrame()

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

Gets the audio frame.

audioFrameAudio frame: AudioPcmFrame.
  • true: Success.
  • false: Failure.

The documentation for this class was generated from the following file: