public class AgoraAudioProcessor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr |
| Constructor and Description |
|---|
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() |
private static java.lang.String |
nativeGetSdkVersion() |
private int |
nativeInit(long cptr,
java.lang.String appId,
java.lang.String license,
IAgoraAudioProcessorEventHandler eventHandler,
AgoraAudioProcessorConfig config) |
private AgoraAudioFrame |
nativeProcess(long cptr,
AgoraAudioFrame nearIn,
AgoraAudioFrame farIn) |
private int |
nativeRelease(long cptr) |
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 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)
private AgoraAudioFrame nativeProcess(long cptr, AgoraAudioFrame nearIn, AgoraAudioFrame farIn)
private int nativeRelease(long cptr)