public class JavaAudioDeviceModule extends java.lang.Object implements AudioDeviceModule
限定符和类型 | 类和说明 |
---|---|
static interface |
JavaAudioDeviceModule.AudioRecordErrorCallback |
static class |
JavaAudioDeviceModule.AudioRecordStartErrorCode |
static class |
JavaAudioDeviceModule.AudioSamples
Contains audio sample information.
|
static interface |
JavaAudioDeviceModule.AudioTrackErrorCallback |
static class |
JavaAudioDeviceModule.AudioTrackStartErrorCode |
static class |
JavaAudioDeviceModule.Builder |
static interface |
JavaAudioDeviceModule.SamplesReadyCallback
Called when new audio samples are ready.
|
限定符和类型 | 方法和说明 |
---|---|
static JavaAudioDeviceModule.Builder |
builder(Context context) |
long |
getNativeAudioDeviceModulePointer()
Returns a C++ pointer to a webrtc::AudioDeviceModule.
|
static boolean |
isBuiltInAcousticEchoCancelerSupported()
Returns true if the device supports built-in HW AEC, and the UUID is approved (some UUIDs can
be excluded).
|
static boolean |
isBuiltInNoiseSuppressorSupported()
Returns true if the device supports built-in HW NS, and the UUID is approved (some UUIDs can be
excluded).
|
void |
release()
Release resources for this AudioDeviceModule, including native resources.
|
void |
setMicrophoneMute(boolean mute)
Control muting/unmuting the microphone.
|
void |
setSpeakerMute(boolean mute)
Control muting/unmuting the speaker.
|
public static JavaAudioDeviceModule.Builder builder(Context context)
public static boolean isBuiltInAcousticEchoCancelerSupported()
public static boolean isBuiltInNoiseSuppressorSupported()
public long getNativeAudioDeviceModulePointer()
AudioDeviceModule
public void release()
AudioDeviceModule
release
在接口中 AudioDeviceModule
public void setSpeakerMute(boolean mute)
AudioDeviceModule
setSpeakerMute
在接口中 AudioDeviceModule
public void setMicrophoneMute(boolean mute)
AudioDeviceModule
setMicrophoneMute
在接口中 AudioDeviceModule