class AgoraAudioPcmDataSender
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer
|
| Constructor and Description |
|---|
AgoraAudioPcmDataSender(long cptr)
Constructs an AgoraAudioPcmDataSender.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the audio data sender
|
private void |
nativeDestroy(long cptr)
Native destroy method.
|
private int |
nativeSend(long cptr,
byte[] audioData,
int captureTimestamp,
long presentationMs,
int samplesPerChannel,
int bytesPerSample,
int numberOfChannels,
int sampleRate)
Native method to send PCM audio data.
|
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
|
public AgoraAudioPcmDataSender(long cptr)
cptr - Native pointer@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)
cptr - Native pointeraudioData - Audio datacaptureTimestamp - Capture timestamppresentationMs - Presentation timestampsamplesPerChannel - Samples per channelbytesPerSample - Bytes per samplenumberOfChannels - Number of channelssampleRate - Sample rateprivate void nativeDestroy(long cptr)
cptr - Native pointer