Package com.vonage.client.video
Enum Class Websocket.AudioRate
- All Implemented Interfaces:
Serializable,Comparable<Websocket.AudioRate>,java.lang.constant.Constable
- Enclosing class:
Websocket
Represents the possible audio sampling rate values for a WebSocket connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Websocket.AudioRatefromInt(int value) Converts an integer sampling value into the appropriate enum representation.intConverts the enum to an integer value representing the bitrate (Hz).static Websocket.AudioRateReturns the enum constant of this class with the specified name.static Websocket.AudioRate[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
L16_8K
Linear 16-bit PCM at 8 Khz. -
L16_16K
Linear 16-bit PCM at 16 Khz.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getAudioRate
Converts the enum to an integer value representing the bitrate (Hz).- Returns:
- The audio rate in Hertz as an int.
-
fromInt
Converts an integer sampling value into the appropriate enum representation.- Parameters:
value- The sampling rate in Hz or KHz.- Returns:
- The corresponding enum representation.
-