class AgoraAudioPcmDataSender
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr |
| Constructor and Description |
|---|
AgoraAudioPcmDataSender(long cptr) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the audio data sender
|
private void |
nativeDestroy(long cptr) |
private int |
nativeSend(long cptr,
byte[] audioData,
int captureTimestamp,
long presentationMs,
int samplesPerChannel,
int bytesPerSample,
int numberOfChannels,
int sampleRate) |
int |
send(byte[] audioData,
int captureTimestamp,
long presentationMs,
int samplesPerChannel,
int bytesPerSample,
int numberOfChannels,
int sampleRate)
Deprecated.
Use
sendAudioPcmData(AudioFrame) instead |
int |
sendAudioPcmData(AudioFrame audioFrame)
Sends audio data
|
@Deprecated
public int send(byte[] audioData,
int captureTimestamp,
long presentationMs,
int samplesPerChannel,
int bytesPerSample,
int numberOfChannels,
int sampleRate)
sendAudioPcmData(AudioFrame) insteadaudioData - The audio datacaptureTimestamp - The capture timestamppresentationMs - The presentation timestampsamplesPerChannel - The number of samples per channelbytesPerSample - The number of bytes per samplenumberOfChannels - The number of channelssampleRate - The sample ratepublic int sendAudioPcmData(AudioFrame audioFrame)
audioFrame - The audio framepublic void destroy()
private int nativeSend(long cptr,
byte[] audioData,
int captureTimestamp,
long presentationMs,
int samplesPerChannel,
int bytesPerSample,
int numberOfChannels,
int sampleRate)
private void nativeDestroy(long cptr)