public class AgoraAudioProcessor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer
|
| Constructor and Description |
|---|
AgoraAudioProcessor()
Constructs an AgoraAudioProcessor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getSdkVersion()
Gets the SDK version.
|
int |
init(java.lang.String appId,
java.lang.String license,
IAgoraAudioProcessorEventHandler eventHandler,
AgoraAudioProcessorConfig config)
Initializes the audio processor with the specified parameters.
|
private long |
nativeCreate()
Native create method.
|
private static java.lang.String |
nativeGetSdkVersion()
Native method to get SDK version.
|
private int |
nativeInit(long cptr,
java.lang.String appId,
java.lang.String license,
IAgoraAudioProcessorEventHandler eventHandler,
AgoraAudioProcessorConfig config)
Native init method.
|
private AgoraAudioFrame |
nativeProcess(long cptr,
AgoraAudioFrame nearIn,
AgoraAudioFrame farIn)
Native process method.
|
private int |
nativeRelease(long cptr)
Native release method.
|
AgoraAudioFrame |
process(AgoraAudioFrame nearIn)
Processes the given audio frame and returns the processed frame.
|
AgoraAudioFrame |
process(AgoraAudioFrame nearIn,
AgoraAudioFrame farIn)
Processes the given audio frame and returns the processed frame.
|
int |
release()
Releases the resources held by the audio processor.
|
public AgoraAudioProcessor()
public static java.lang.String getSdkVersion()
public int init(java.lang.String appId,
java.lang.String license,
IAgoraAudioProcessorEventHandler eventHandler,
AgoraAudioProcessorConfig config)
appId - The App ID for authentication.license - The license key for the audio processor.eventHandler - The event handler for audio processor events.config - The configuration for the audio processor.public AgoraAudioFrame process(AgoraAudioFrame nearIn)
nearIn - The input audio frame to process.public AgoraAudioFrame process(AgoraAudioFrame nearIn, AgoraAudioFrame farIn)
nearIn - The input audio frame to process.farIn - The input audio frame to process.public int release()
private long nativeCreate()
private static java.lang.String nativeGetSdkVersion()
private int nativeInit(long cptr,
java.lang.String appId,
java.lang.String license,
IAgoraAudioProcessorEventHandler eventHandler,
AgoraAudioProcessorConfig config)
cptr - Native pointerappId - App IDlicense - License keyeventHandler - Event handlerconfig - Audio processor configurationprivate AgoraAudioFrame nativeProcess(long cptr, AgoraAudioFrame nearIn, AgoraAudioFrame farIn)
cptr - Native pointernearIn - Near-end audio framefarIn - Far-end audio frameprivate int nativeRelease(long cptr)
cptr - Native pointer