|
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, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
| virtual bool | removeAudioSink (agora_refptr< IAudioSinkBase > sink, aosl_ref_t ares=AOSL_REF_INVALID)=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. |
| ares | This parameter is used for the SDK lifecycle protection. Fill in the default value. |
true: Success.false: Failure.
|
pure virtual |
Removes an audio sink.
| sink | The pointer to the audio sink to be removed. See IAudioSinkBase. |
| ares | This parameter is used for the SDK lifecycle protection. Fill in the default value. |
true: Success.false: Failure.