Enum SampleRateConverter.ResamplingType
- java.lang.Object
-
- java.lang.Enum<SampleRateConverter.ResamplingType>
-
- com.sedmelluq.discord.lavaplayer.natives.samplerate.SampleRateConverter.ResamplingType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SampleRateConverter.ResamplingType>
- Enclosing class:
- SampleRateConverter
public static enum SampleRateConverter.ResamplingType extends java.lang.Enum<SampleRateConverter.ResamplingType>
Available resampling types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LINEARSINC_BEST_QUALITYSINC_FASTESTSINC_MEDIUM_QUALITYZERO_ORDER_HOLD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SampleRateConverter.ResamplingTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SampleRateConverter.ResamplingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINC_BEST_QUALITY
public static final SampleRateConverter.ResamplingType SINC_BEST_QUALITY
-
SINC_MEDIUM_QUALITY
public static final SampleRateConverter.ResamplingType SINC_MEDIUM_QUALITY
-
SINC_FASTEST
public static final SampleRateConverter.ResamplingType SINC_FASTEST
-
ZERO_ORDER_HOLD
public static final SampleRateConverter.ResamplingType ZERO_ORDER_HOLD
-
LINEAR
public static final SampleRateConverter.ResamplingType LINEAR
-
-
Method Detail
-
values
public static SampleRateConverter.ResamplingType[] 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 (SampleRateConverter.ResamplingType c : SampleRateConverter.ResamplingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SampleRateConverter.ResamplingType 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
-
-