public static enum AudioSource.Status extends java.lang.Enum<AudioSource.Status>
Status
indicates the current status of the audio source.Enum Constant and Description |
---|
Paused
The audio source is currently paused.
|
Playing
The audio source is currently playing.
|
Stopped
The audio source is currently stopped.
|
Modifier and Type | Method and Description |
---|---|
static AudioSource.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AudioSource.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AudioSource.Status Playing
AudioNode.play()
is called.public static final AudioSource.Status Paused
public static final AudioSource.Status Stopped
AudioNode.stop()
is called
or the audio has reached the end of the file.public static AudioSource.Status[] values()
for (AudioSource.Status c : AudioSource.Status.values()) System.out.println(c);
public static AudioSource.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null