public class DefaultAudioDevice extends Object implements AudioDevice
Constructor and Description |
---|
DefaultAudioDevice() |
Modifier and Type | Method and Description |
---|---|
AudioFormat |
getCapturerFormat()
This method is a no-op that returns
null . |
AudioFormat |
getRendererFormat()
This method is a no-op that returns
null . |
boolean |
onInitCapturer()
This method is a no-op that returns
false . |
boolean |
onInitRenderer()
This method is a no-op that returns
false . |
boolean |
onStartCapturing(AudioDeviceContext audioDeviceContext)
This method is a no-op that returns
false . |
boolean |
onStartRendering(AudioDeviceContext audioDeviceContext)
This method is a no-op that returns
false . |
boolean |
onStopCapturing()
This method is a no-op that returns
false . |
boolean |
onStopRendering()
This method is a no-op that returns
false . |
void |
setUseHardwareAcousticEchoCanceler(boolean useHardwareAcousticEchoCanceler)
Control if the built-in hardware AEC should be used or not.
|
void |
setUseHardwareNoiseSuppressor(boolean useHardwareNoiseSuppressor)
Control if the built-in hardware noise suppressor should be used or not.
|
boolean |
useHardwareAcousticEchoCanceler()
Indicates if the built-in hardware AEC is used or not.
|
boolean |
useHardwareNoiseSuppressor()
Indicates if the built-in hardware noise suppressor is used or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
audioDeviceExecuteWorkerBlock, audioDeviceFormatChanged, audioDeviceReadRenderData, audioDeviceWriteCaptureData
public void setUseHardwareAcousticEchoCanceler(boolean useHardwareAcousticEchoCanceler)
true
.useHardwareAcousticEchoCanceler
- true if audio device should use hardware AEC,
false otherwisepublic void setUseHardwareNoiseSuppressor(boolean useHardwareNoiseSuppressor)
true
.useHardwareNoiseSuppressor
- true if audio device should use hardware noise suppressor,
false otherwise.public boolean useHardwareAcousticEchoCanceler()
true
.public boolean useHardwareNoiseSuppressor()
true
.public AudioFormat getCapturerFormat()
null
.getCapturerFormat
in interface AudioDeviceCapturer
AudioFormat
public boolean onInitCapturer()
false
.onInitCapturer
in interface AudioDeviceCapturer
public boolean onStartCapturing(AudioDeviceContext audioDeviceContext)
false
.onStartCapturing
in interface AudioDeviceCapturer
public boolean onStopCapturing()
false
.onStopCapturing
in interface AudioDeviceCapturer
public AudioFormat getRendererFormat()
null
.getRendererFormat
in interface AudioDeviceRenderer
AudioFormat
public boolean onInitRenderer()
false
.onInitRenderer
in interface AudioDeviceRenderer
public boolean onStartRendering(AudioDeviceContext audioDeviceContext)
false
.onStartRendering
in interface AudioDeviceRenderer
public boolean onStopRendering()
false
.onStopRendering
in interface AudioDeviceRenderer
5.2.0