Agora Server Gateway SDK C++ API Reference
Public Member Functions | List of all members
agora::rtc::IRemoteAudioTrack Class Referenceabstract

#include <NGIAgoraAudioTrack.h>

Public Member Functions

virtual bool getStatistics (RemoteAudioTrackStats &stats)=0
 
virtual REMOTE_AUDIO_STATE getState ()=0
 
- Public Member Functions inherited from agora::rtc::IAudioTrack
virtual bool addAudioSink (agora_refptr< IAudioSinkBase > sink, const AudioSinkWants &wants, aosl_ref_t ares=AOSL_REF_INVALID)=0
 
virtual bool removeAudioSink (agora_refptr< IAudioSinkBase > sink, aosl_ref_t ares=AOSL_REF_INVALID)=0
 

Additional Inherited Members

- Public Types inherited from agora::rtc::IAudioTrack
enum  AudioFilterPosition {
  RecordingLocalPlayback , PostAudioProcessing , RemoteUserPlayback , PcmSource ,
  PcmSourceSending , PcmSourceLocalPlayback , RemoteMixedPlayback
}
 

Detailed Description

The IRemoteAudioTrack class.

Member Function Documentation

◆ getState()

virtual REMOTE_AUDIO_STATE agora::rtc::IRemoteAudioTrack::getState ( )
pure virtual

Gets the state of the remote audio.

Returns
The state of the remote audio: REMOTE_AUDIO_STATE.

◆ getStatistics()

virtual bool agora::rtc::IRemoteAudioTrack::getStatistics ( RemoteAudioTrackStats stats)
pure virtual

Gets the statistics of the remote audio track.

Parameters
statsA reference to the statistics of the remote audio track: RemoteAudioTrackStats.
Returns
  • true: Success.
  • false: Failure.

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