Package tvi.webrtc.audio
Class WebRtcAudioUtils
java.lang.Object
tvi.webrtc.audio.WebRtcAudioUtils
Utilities for implementations of
AudioDeviceModule
, mostly for logging.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
audioEncodingToString
(int enc) static String
audioSourceToString
(int source) static String
channelMaskToString
(int mask) static String
deviceTypeToString
(int type) Converts AudioDeviceInfo types to local string representation.static String
Helper method for building a string of thread information.static void
logAudioState
(String tag, android.content.Context context, android.media.AudioManager audioManager) Logs information about the current audio state.static boolean
Returns true if we're running on emulator.
-
Constructor Details
-
WebRtcAudioUtils
public WebRtcAudioUtils()
-
-
Method Details
-
getThreadInfo
Helper method for building a string of thread information. -
runningOnEmulator
public static boolean runningOnEmulator()Returns true if we're running on emulator. -
logAudioState
public static void logAudioState(String tag, android.content.Context context, android.media.AudioManager audioManager) Logs information about the current audio state. The idea is to call this method when errors are detected to log under what conditions the error occurred. Hopefully it will provide clues to what might be the root cause. -
deviceTypeToString
Converts AudioDeviceInfo types to local string representation. -
audioSourceToString
-
channelMaskToString
-
audioEncodingToString
-