Agora C++ API Reference for All Platforms
|
Inherits agora::RefCountInterface.
Inherited by agora::rtc::IAudioFilter.
Public Member Functions | |
virtual bool | adaptAudioFrame (const media::base::AudioPcmFrame &inAudioFrame, media::base::AudioPcmFrame &adaptedFrame)=0 |
virtual int | getPreferredSampleRate ()=0 |
![]() | |
virtual void | AddRef () const =0 |
virtual RefCountReleaseStatus | Release () const =0 |
virtual bool | HasOneRef () const =0 |
Protected Member Functions | |
~IAudioFilterBase () | |
![]() | |
virtual | ~RefCountInterface () |
The IAudioFilterBase
class is the base class for audio filters. You can use this class to implement your own filter and add it to an audio track.
|
inlineprotected |
|
pure virtual |
Adapts the audio frame.
inAudioFrame | The reference to the audio frame that you want to adapt. |
adaptedFrame | The reference to the adapted audio frame. |
true
: Success.false
: Failure. For example, the IAudiofilter object drops the audio frame.
|
pure virtual |
Get the sample rate supported by the audio filter, the framework will resample the audio data and then pass it to the audio filter.
Implemented in agora::rtc::IAudioFilter.