Class WebRtcAudioUtils

java.lang.Object
tvi.webrtc.audio.WebRtcAudioUtils

public final class WebRtcAudioUtils extends Object
Utilities for implementations of AudioDeviceModule, mostly for logging.
  • Constructor Details

    • WebRtcAudioUtils

      public WebRtcAudioUtils()
  • Method Details

    • getThreadInfo

      public static String 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

      public static String deviceTypeToString(int type)
      Converts AudioDeviceInfo types to local string representation.
    • audioSourceToString

      public static String audioSourceToString(int source)
    • channelMaskToString

      public static String channelMaskToString(int mask)
    • audioEncodingToString

      public static String audioEncodingToString(int enc)