Enum AudioStreamSampleRate
- Object
-
- Enum<AudioStreamSampleRate>
-
- AudioStreamSampleRate
-
- All Implemented Interfaces:
Serializable
,Comparable<AudioStreamSampleRate>
public enum AudioStreamSampleRate extends Enum<AudioStreamSampleRate>
Specifies the sample rates supported by the RawAudioStreams entities
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AudioStreamSampleRate
valueOf(String name)
Returns the enum constant of this type with the specified name.static AudioStreamSampleRate[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HZ_16000
public static final AudioStreamSampleRate HZ_16000
16000 Hz
-
HZ_22050
public static final AudioStreamSampleRate HZ_22050
22050 Hz
-
HZ_24000
public static final AudioStreamSampleRate HZ_24000
24000 Hz
-
HZ_32000
public static final AudioStreamSampleRate HZ_32000
32000 Hz
-
HZ_44100
public static final AudioStreamSampleRate HZ_44100
44100 Hz
-
HZ_48000
public static final AudioStreamSampleRate HZ_48000
48000 Hz
-
-
Method Detail
-
values
public static AudioStreamSampleRate[] 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 (AudioStreamSampleRate c : AudioStreamSampleRate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AudioStreamSampleRate valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-