Agora Server Gateway SDK C++ API Reference
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 ( )
inlineprotected

Member Function Documentation

◆ onAudioFrame()

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

Gets the audio frame.

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

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