Package org.freedesktop.gstreamer.audio
Enum Class DsdFormat
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<DsdFormat>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum DsdFormat
extends Enum<DsdFormat>
implements Enumeration
Enum value describing how DSD bits are grouped.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription16 DSD bits in 2 bytes, big endian order16 DSD bits in 2 bytes, little endian order32 DSD bits in 4 bytes, big endian order32 DSD bits in 4 bytes, little endian order8 DSD bits in 1 byteunknown / invalid DSD formatnumber of valid DSD formats -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DsdFormat
fromString
(String str) Convert the DSD format stringstr
to itsGstDsdFormat
.static Type
getType()
Get the GType of the DsdFormat classint
getValue()
Get the numeric value of this enumint
getWidth()
static DsdFormat
of
(int value) Create a new DsdFormat for the provided valuetoString()
Returns a string containing a descriptive name for theGstDsdFormat
if there is one, or NULL otherwise.static DsdFormat
Returns the enum constant of this class with the specified name.static DsdFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DSD_FORMAT_UNKNOWN
unknown / invalid DSD format -
DSD_FORMAT_U8
8 DSD bits in 1 byte -
DSD_FORMAT_U16LE
16 DSD bits in 2 bytes, little endian order -
DSD_FORMAT_U16BE
16 DSD bits in 2 bytes, big endian order -
DSD_FORMAT_U32LE
32 DSD bits in 4 bytes, little endian order -
DSD_FORMAT_U32BE
32 DSD bits in 4 bytes, big endian order -
NUM_DSD_FORMATS
number of valid DSD formats
-
-
Field Details
-
DSD_FORMAT_U16
16 DSD bits in 2 bytes, native endianness -
DSD_FORMAT_U32
32 DSD bits in 4 bytes, native endianness
-
-
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
-
of
Create a new DsdFormat for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
fromString
-
getWidth
public int getWidth() -
toString
-