Inherits agora::RefCountInterface.
Inherited by agora::rtc::ILocalAudioTrack, and agora::rtc::IRemoteAudioTrack.
◆ AudioFilterPosition
The position of the audio filter in audio frame.
Enumerator |
---|
RecordingLocalPlayback | Work on the local playback
|
PostAudioRecordingDevice | Work on the post audio recording device.
|
PostAudioProcessing | Work on the post audio processing.
|
◆ adjustPlayoutVolume()
virtual int agora::rtc::IAudioTrack::adjustPlayoutVolume |
( |
int |
volume | ) |
|
|
pure virtual |
Adjusts the playback volume.
- Parameters
-
volume | The playback volume. The value ranges between 0 and 100 (default). |
- Returns
- 0: Success.
- < 0: Failure.
◆ getPlayoutVolume()
virtual int agora::rtc::IAudioTrack::getPlayoutVolume |
( |
int * |
volume | ) |
|
|
pure virtual |
Gets the current playback volume.
- Parameters
-
volume | A pointer to the playback volume. |
- Returns
- 0: Success.
- < 0: Failure.
◆ addAudioFilter()
Adds an audio filter.
By adding an audio filter, you can apply various audio effects to the audio, for example, voice change.
- Parameters
-
- Returns
true
: Success.
false
: Failure.
◆ removeAudioFilter()
Removes the audio filter added by callling addAudioFilter
.
- Parameters
-
- Returns
true
: Success.
false
: Failure.
◆ enableAudioFilter()
virtual int agora::rtc::IAudioTrack::enableAudioFilter |
( |
const char * |
id, |
|
|
bool |
enable |
|
) |
| |
|
inlinevirtual |
Enable / Disable specified audio filter
- Parameters
-
id | id of the filter |
enable | enable / disable the filter with given id |
- Returns
-
◆ setFilterProperty()
virtual int agora::rtc::IAudioTrack::setFilterProperty |
( |
const char * |
id, |
|
|
const char * |
key, |
|
|
const char * |
jsonValue |
|
) |
| |
|
inlinevirtual |
set the properties of the specified audio filter
- Parameters
-
id | id of the filter |
key | key of the property |
jsonValue | json str value of the property |
- Returns
-
◆ getAudioFilter()
Gets the audio filter by its name.
- Parameters
-
name | The name of the audio filter. |
position | The position of the audio filter. See AudioFilterPosition. |
- Returns
- The pointer to the audio filter: Success.
- A null pointer: Failure.
◆ addAudioSink()
Adds an audio sink to get PCM data from the audio track.
- Parameters
-
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. |
- Returns
true
: Success.
false
: Failure.
◆ removeAudioSink()
Removes an audio sink.
- Parameters
-
- Returns
true
: Success.
false
: Failure.