Agora Server Gateway SDK C++ API Reference
|
#include <NGIAgoraAudioTrack.h>
Public Types | |
enum | AudioFilterPosition { RecordingLocalPlayback , PostAudioProcessing , RemoteUserPlayback , PcmSource , PcmSourceSending , PcmSourceLocalPlayback , RemoteMixedPlayback } |
Public Member Functions | |
virtual bool | addAudioSink (agora_refptr< IAudioSinkBase > sink, const AudioSinkWants &wants)=0 |
virtual bool | removeAudioSink (agora_refptr< IAudioSinkBase > sink)=0 |
The IAudioTrack class.
The position of the audio filter in audio frame.
|
pure virtual |
Adds an audio sink to get PCM data from the audio track.
sink | The pointer to the audio sink. See IAudioSinkBase. |
wants | The properties an audio frame should have when it is delivered to the sink. See AudioSinkWants. |
true
: Success.false
: Failure.
|
pure virtual |
Removes an audio sink.
sink | The pointer to the audio sink to be removed. See IAudioSinkBase. |
true
: Success.false
: Failure.