Agora Java API Reference for Android
|
#include <NGIAgoraMediaNode.h>
Public Member Functions | |
virtual bool | adaptAudioFrame (const media::base::AudioPcmFrame &inAudioFrame, media::base::AudioPcmFrame &adaptedFrame)=0 |
virtual int | getPreferredSampleRate ()=0 |
virtual int | getPreferredChannelNumbers ()=0 |
![]() | |
virtual void | AddRef () const =0 |
virtual RefCountReleaseStatus | Release () const =0 |
virtual bool | HasOneRef () const =0 |
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.
|
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.
|
pure virtual |
Get the channel number supported by the audio filter, the framework will resample the audio data and then pass it to the audio filter. If the user does not overwrite, resampling will not be done by default.
Implemented in agora::rtc::IAudioFilter.