#include <NGIAgoraAudioTrack.h>
ILocalAudioTrack
is the base class for local audio tracks, providing main methods of local audio tracks.
◆ ~ILocalAudioTrack()
agora::rtc::ILocalAudioTrack::~ILocalAudioTrack |
( |
| ) |
|
|
inlineprotected |
◆ adjustPublishVolume()
virtual int agora::rtc::ILocalAudioTrack::adjustPublishVolume |
( |
int |
volume | ) |
|
|
pure virtual |
Adjusts the audio volume for publishing.
- Parameters
-
volume | The volume for publishing. The value ranges between 0 and 100 (default). |
- Returns
- 0: Success.
- < 0: Failure.
◆ getPublishVolume()
virtual int agora::rtc::ILocalAudioTrack::getPublishVolume |
( |
int * |
volume | ) |
|
|
pure virtual |
Gets the current volume for publishing.
- Parameters
-
volume | A pointer to the publishing volume. |
- Returns
- 0: Success.
- < 0: Failure.
◆ getState()
◆ GetStats()
◆ isEnabled()
virtual bool agora::rtc::ILocalAudioTrack::isEnabled |
( |
| ) |
const |
|
pure virtual |
Gets whether the local audio track is enabled.
- Returns
- Whether the local audio track is enabled:
true
: The local track is enabled.
false
: The local track is disabled.
◆ setEnabled()
virtual void agora::rtc::ILocalAudioTrack::setEnabled |
( |
bool |
enable | ) |
|
|
pure virtual |
Enables or disables the local audio track.
Once the local audio is enabled, the SDK allows for local audio capturing, processing, and encoding.
- Parameters
-
enable | Whether to enable the audio track:
true : Enable the local audio track.
false : Disable the local audio track.
|
The documentation for this class was generated from the following file: