Package org.webrtc.audio
Class WebRtcAudioManager
java.lang.Object
org.webrtc.audio.WebRtcAudioManager
This class contains static functions to query sample rate and input/output audio buffer sizes.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static Object
getAudioManager
(Object context) (package private) static int
getInputBufferSize
(Object context, Object audioManager, int sampleRate, int numberOfInputChannels) (package private) static int
getOutputBufferSize
(Object context, Object audioManager, int sampleRate, int numberOfOutputChannels) (package private) static int
getSampleRate
(Object audioManager) Returns the native input/output sample rate for this device's output stream.
-
Field Details
-
TAG
- See Also:
-
DEFAULT_SAMPLE_RATE_HZ
private static final int DEFAULT_SAMPLE_RATE_HZ- See Also:
-
BITS_PER_SAMPLE
private static final int BITS_PER_SAMPLE- See Also:
-
DEFAULT_FRAME_PER_BUFFER
private static final int DEFAULT_FRAME_PER_BUFFER- See Also:
-
-
Constructor Details
-
WebRtcAudioManager
WebRtcAudioManager()
-
-
Method Details
-
getAudioManager
-
getOutputBufferSize
-
getInputBufferSize
-
getSampleRate
Returns the native input/output sample rate for this device's output stream.
-