◆ AgoraLocalAudioTrack()
io.agora.rtc.AgoraLocalAudioTrack.AgoraLocalAudioTrack |
( |
long |
cptr | ) |
|
◆ adjustPublishVolume()
native int io.agora.rtc.AgoraLocalAudioTrack.adjustPublishVolume |
( |
int |
volume | ) |
|
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.
◆ destroy()
void io.agora.rtc.AgoraLocalAudioTrack.destroy |
( |
| ) |
|
◆ destroyStats()
◆ getPublishVolume()
native int io.agora.rtc.AgoraLocalAudioTrack.getPublishVolume |
( |
Out |
volume | ) |
|
Gets the current volume for publishing.
- Parameters
-
volume | The publishing volume. |
- Returns
- 0: Success.
- < 0: Failure.
◆ getState()
native int io.agora.rtc.AgoraLocalAudioTrack.getState |
( |
| ) |
|
Gets the state of the local audio.
- Returns
- The state of the local audio.
◆ getStats()
Gets the statistics of the local audio track.
- Returns
- The statistics of the local audio.
◆ isEnabled()
native int io.agora.rtc.AgoraLocalAudioTrack.isEnabled |
( |
| ) |
|
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()
native void io.agora.rtc.AgoraLocalAudioTrack.setEnabled |
( |
int |
enable | ) |
|
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: