Package com.avpkit.core
Enum IAudioSamples.Format
- java.lang.Object
-
- java.lang.Enum<IAudioSamples.Format>
-
- com.avpkit.core.IAudioSamples.Format
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IAudioSamples.Format>
- Enclosing class:
- IAudioSamples
public static enum IAudioSamples.Format extends java.lang.Enum<IAudioSamples.Format>
The format we use to represent audio. Today
only FMT_S16 (signed integer 16-bit audio) is supported.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FMT_DBLdoubleFMT_DBLPdouble, planarFMT_FLTfloatFMT_FLTPfloat, planarFMT_NONEFMT_S16signed 16 bitsFMT_S16Psigned 16 bits, planarFMT_S32signed 32 bitsFMT_S32Psigned 32 bits, planarFMT_U8unsigned 8 bitsFMT_U8Punsigned 8 bits, planar
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IAudioSamples.FormatswigToEnum(int swigValue)intswigValue()static IAudioSamples.FormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IAudioSamples.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FMT_NONE
public static final IAudioSamples.Format FMT_NONE
-
FMT_U8
public static final IAudioSamples.Format FMT_U8
unsigned 8 bits
-
FMT_S16
public static final IAudioSamples.Format FMT_S16
signed 16 bits
-
FMT_S32
public static final IAudioSamples.Format FMT_S32
signed 32 bits
-
FMT_FLT
public static final IAudioSamples.Format FMT_FLT
float
-
FMT_DBL
public static final IAudioSamples.Format FMT_DBL
double
-
FMT_U8P
public static final IAudioSamples.Format FMT_U8P
unsigned 8 bits, planar
-
FMT_S16P
public static final IAudioSamples.Format FMT_S16P
signed 16 bits, planar
-
FMT_S32P
public static final IAudioSamples.Format FMT_S32P
signed 32 bits, planar
-
FMT_FLTP
public static final IAudioSamples.Format FMT_FLTP
float, planar
-
FMT_DBLP
public static final IAudioSamples.Format FMT_DBLP
double, planar
-
-
Method Detail
-
values
public static IAudioSamples.Format[] 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 (IAudioSamples.Format c : IAudioSamples.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IAudioSamples.Format 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
-
swigValue
public final int swigValue()
-
swigToEnum
public static IAudioSamples.Format swigToEnum(int swigValue)
-
-