Package io.agora.rtc2

Enum Class Constants.AudioScenario

java.lang.Object
java.lang.Enum<Constants.AudioScenario>
io.agora.rtc2.Constants.AudioScenario
All Implemented Interfaces:
Serializable, Comparable<Constants.AudioScenario>, Constable
Enclosing class:
Constants

public static enum Constants.AudioScenario extends Enum<Constants.AudioScenario>
Sets the audio application scenarios.
  • Enum Constant Details

    • DEFAULT

      public static final Constants.AudioScenario DEFAULT
      0: (Recommended) The default audio scenario.
    • GAME_STREAMING

      public static final Constants.AudioScenario GAME_STREAMING
      3: (Recommended) The live gaming scenario, which needs to enable the gaming audio effects in the speaker mode in a live broadcast scenario. Choose this scenario to achieve high-fidelity music playback.
    • CHATROOM

      public static final Constants.AudioScenario CHATROOM
      5: The chatroom scenario, which needs to keep recording when setClientRole to audience. Normally, app developer can also use mute api to achieve the same result, and we implement this 'non-orthogonal' behavior only to make API backward compatible.
  • Method Details

    • values

      public static Constants.AudioScenario[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Constants.AudioScenario valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public static int getValue(Constants.AudioScenario type)