Package org.godot.utilities.core
Enum AudioDriver
- java.lang.Object
-
- java.lang.Enum<AudioDriver>
-
- org.godot.utilities.core.AudioDriver
-
- All Implemented Interfaces:
Serializable,Comparable<AudioDriver>
public enum AudioDriver extends Enum<AudioDriver>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DUMMYAudio driver"Dummy"used only inVersion.V3RtAudioWASAPIAudio driver"WASAPI"used only inVersion.V3
-
Field Summary
Fields Modifier and Type Field Description StringdriverNameDriver name
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable AudioDrivergetFromName(String name)Get driver from namestatic AudioDrivervalueOf(String name)Returns the enum constant of this type with the specified name.static AudioDriver[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RtAudio
public static final AudioDriver RtAudio
- See Also:
- RtAudio-DirectSound (Github)
-
WASAPI
public static final AudioDriver WASAPI
Audio driver"WASAPI"used only inVersion.V3- See Also:
- WASAPI (Microsoft docs)
-
DUMMY
public static final AudioDriver DUMMY
Audio driver"Dummy"used only inVersion.V3
-
-
Field Detail
-
driverName
public final String driverName
Driver name
-
-
Method Detail
-
values
public static AudioDriver[] 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 (AudioDriver c : AudioDriver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AudioDriver 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
-
getFromName
@Nullable public static @Nullable AudioDriver getFromName(String name)
Get driver from name- Parameters:
name- Target names to search- Returns:
- Driver type or
nullif driver not exists
-
-