public class AgoraLocalAudioTrack
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr |
| Constructor and Description |
|---|
AgoraLocalAudioTrack(long cptr)
Constructor for AgoraLocalAudioTrack.
|
| Modifier and Type | Method and Description |
|---|---|
int |
adjustPublishVolume(int volume)
Adjusts the publish volume of the local audio track.
|
int |
clearSenderBuffer()
Clears the sender buffer.
|
void |
destroy()
Destroys the local audio track.
|
void |
destroyStats(LocalAudioTrackStats stats)
Destroys the provided LocalAudioTrackStats object.
|
int |
enableEarMonitor(int enable,
int includeAudiFilter)
Enables or disables ear monitoring.
|
int |
enableLocalPlayback(int enable)
Enables or disables local playback of the audio track.
|
long |
getNativeHandle()
Gets the native handle of the local audio track.
|
int |
getPublishVolume(Out volume)
Gets the current publish volume of the local audio track.
|
int |
getState()
Gets the current state of the local audio track.
|
LocalAudioTrackStats |
getStats()
Retrieves the statistics of the local audio track.
|
int |
isEnabled()
Checks if the local audio track is enabled.
|
private int |
nativeAdjustPublishVolume(long cptr,
int volume) |
private int |
nativeClearSenderBuffer(long cptr) |
private void |
nativeDestroy(long cptr) |
private void |
nativeDestroyStats(long cptr,
LocalAudioTrackStats stats) |
private int |
nativeEnableEarMonitor(long cptr,
int enable,
int includeAudiFilter) |
private int |
nativeEnableLocalPlayback(long cptr,
int enable) |
private int |
nativeGetPublishVolume(long cptr,
Out volume) |
private int |
nativeGetState(long cptr) |
private LocalAudioTrackStats |
nativeGetStats(long cptr) |
private int |
nativeIsEnabled(long cptr) |
private void |
nativeSetEnabled(long cptr,
int enable) |
private void |
nativeSetMaxBufferedAudioFrameNumber(long cptr,
int number) |
private void |
nativeSetSendDelayMs(long cptr,
int delayMs) |
void |
setEnabled(int enable)
Enables or disables the local audio track.
|
void |
setMaxBufferedAudioFrameNumber(int number)
Sets the maximum number of buffered audio frames.
|
void |
setSendDelayMs(int delayMs)
Sets the send delay in milliseconds.
|
public AgoraLocalAudioTrack(long cptr)
cptr - Pointer to the native audio track object.public long getNativeHandle()
public void destroy()
public void setEnabled(int enable)
enable - 1 to enable, 0 to disable.public int isEnabled()
public int getState()
public LocalAudioTrackStats getStats()
public void destroyStats(LocalAudioTrackStats stats)
stats - The LocalAudioTrackStats object to be destroyed.public int adjustPublishVolume(int volume)
volume - The volume level to set.public int getPublishVolume(Out volume)
volume - An Out object to store the volume level.public int enableLocalPlayback(int enable)
enable - 1 to enable, 0 to disable.public int enableEarMonitor(int enable,
int includeAudiFilter)
enable - 1 to enable, 0 to disable.includeAudiFilter - 1 to include audio filter, 0 to exclude.public void setMaxBufferedAudioFrameNumber(int number)
number - The maximum number of frames to buffer.public int clearSenderBuffer()
public void setSendDelayMs(int delayMs)
delayMs - The delay in milliseconds.private void nativeDestroy(long cptr)
private void nativeSetEnabled(long cptr,
int enable)
private int nativeIsEnabled(long cptr)
private int nativeGetState(long cptr)
private LocalAudioTrackStats nativeGetStats(long cptr)
private void nativeDestroyStats(long cptr,
LocalAudioTrackStats stats)
private int nativeAdjustPublishVolume(long cptr,
int volume)
private int nativeGetPublishVolume(long cptr,
Out volume)
private int nativeEnableLocalPlayback(long cptr,
int enable)
private int nativeEnableEarMonitor(long cptr,
int enable,
int includeAudiFilter)
private void nativeSetMaxBufferedAudioFrameNumber(long cptr,
int number)
private int nativeClearSenderBuffer(long cptr)
private void nativeSetSendDelayMs(long cptr,
int delayMs)