Package im.zego.zegoexpress.constants
Enum ZegoAudioSampleRate
- java.lang.Object
-
- java.lang.Enum<ZegoAudioSampleRate>
-
- im.zego.zegoexpress.constants.ZegoAudioSampleRate
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoAudioSampleRate>
public enum ZegoAudioSampleRate extends java.lang.Enum<ZegoAudioSampleRate>
audio sample rate.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UNKNOWN
UnknownZEGO_AUDIO_SAMPLE_RATE_16K
16KZEGO_AUDIO_SAMPLE_RATE_22K
22.05KZEGO_AUDIO_SAMPLE_RATE_24K
24KZEGO_AUDIO_SAMPLE_RATE_32K
32KZEGO_AUDIO_SAMPLE_RATE_44K
44.1KZEGO_AUDIO_SAMPLE_RATE_48K
48KZEGO_AUDIO_SAMPLE_RATE_8K
8K
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoAudioSampleRate
getZegoAudioSampleRate(int value)
int
value()
static ZegoAudioSampleRate
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoAudioSampleRate[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ZegoAudioSampleRate UNKNOWN
Unknown
-
ZEGO_AUDIO_SAMPLE_RATE_8K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_8K
8K
-
ZEGO_AUDIO_SAMPLE_RATE_16K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_16K
16K
-
ZEGO_AUDIO_SAMPLE_RATE_22K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_22K
22.05K
-
ZEGO_AUDIO_SAMPLE_RATE_24K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_24K
24K
-
ZEGO_AUDIO_SAMPLE_RATE_32K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_32K
32K
-
ZEGO_AUDIO_SAMPLE_RATE_44K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_44K
44.1K
-
ZEGO_AUDIO_SAMPLE_RATE_48K
public static final ZegoAudioSampleRate ZEGO_AUDIO_SAMPLE_RATE_48K
48K
-
-
Method Detail
-
values
public static ZegoAudioSampleRate[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZegoAudioSampleRate c : ZegoAudioSampleRate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoAudioSampleRate valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoAudioSampleRate
public static ZegoAudioSampleRate getZegoAudioSampleRate(int value)
-
-