public final class DefaultAudioDevice extends java.lang.Object implements AudioDevice
DefaultAudioDevice
to capture and render audio. The Video
SDK performs acoustic echo cancellation(AEC) and noise suppression(NS) using device hardware by
default.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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
audioDeviceExecuteWorkerBlock, audioDeviceFormatChanged, audioDeviceReadRenderData, audioDeviceWriteCaptureData
@Nullable public AudioFormat getCapturerFormat()
null
.getCapturerFormat
in interface AudioDeviceCapturer
AudioFormat
public boolean onInitCapturer()
false
.onInitCapturer
in interface AudioDeviceCapturer
public boolean onStartCapturing(@NonNull AudioDeviceContext audioDeviceContext)
false
.onStartCapturing
in interface AudioDeviceCapturer
public boolean onStopCapturing()
false
.onStopCapturing
in interface AudioDeviceCapturer
@Nullable public AudioFormat getRendererFormat()
null
.getRendererFormat
in interface AudioDeviceRenderer
AudioFormat
public boolean onInitRenderer()
false
.onInitRenderer
in interface AudioDeviceRenderer
public boolean onStartRendering(@NonNull AudioDeviceContext audioDeviceContext)
false
.onStartRendering
in interface AudioDeviceRenderer
public boolean onStopRendering()
false
.onStopRendering
in interface AudioDeviceRenderer
6.0.0