Package org.deepsymmetry.beatlink
Enum CdjStatus.PlayState1
- java.lang.Object
-
- java.lang.Enum<CdjStatus.PlayState1>
-
- org.deepsymmetry.beatlink.CdjStatus.PlayState1
-
- All Implemented Interfaces:
Serializable
,Comparable<CdjStatus.PlayState1>
- Enclosing class:
- CdjStatus
public static enum CdjStatus.PlayState1 extends Enum<CdjStatus.PlayState1>
The possible values of the first play state found in the packet, labeled P1 in the Packet Analysis document.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUE_PLAYING
Cue play is in progress (playback while the cue button is held down).CUE_SCRATCHING
Cue scratch is in progress; the player will return to the cue point when the jog wheel is released.CUED
The player is paused at the cue point.ENDED
The player reached the end of the track and stopped.LOADING
A track is in the process of being loaded.LOOPING
The player is playing a loop.NO_TRACK
No track has been loaded.PAUSED
The player is paused anywhere other than the cue point.PLAYING
The player is playing normally.SEARCHING
The player is searching forwards or backwards.UNKNOWN
We received a value we don’t recognize, so we don’t know what it means.
-
Field Summary
Fields Modifier and Type Field Description byte
protocolValue
The value that represents this play state in a status update.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CdjStatus.PlayState1
valueOf(String name)
Returns the enum constant of this type with the specified name.static CdjStatus.PlayState1[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_TRACK
public static final CdjStatus.PlayState1 NO_TRACK
No track has been loaded.
-
LOADING
public static final CdjStatus.PlayState1 LOADING
A track is in the process of being loaded.
-
PLAYING
public static final CdjStatus.PlayState1 PLAYING
The player is playing normally.
-
LOOPING
public static final CdjStatus.PlayState1 LOOPING
The player is playing a loop.
-
PAUSED
public static final CdjStatus.PlayState1 PAUSED
The player is paused anywhere other than the cue point.
-
CUED
public static final CdjStatus.PlayState1 CUED
The player is paused at the cue point.
-
CUE_PLAYING
public static final CdjStatus.PlayState1 CUE_PLAYING
Cue play is in progress (playback while the cue button is held down).
-
CUE_SCRATCHING
public static final CdjStatus.PlayState1 CUE_SCRATCHING
Cue scratch is in progress; the player will return to the cue point when the jog wheel is released.
-
SEARCHING
public static final CdjStatus.PlayState1 SEARCHING
The player is searching forwards or backwards.
-
ENDED
public static final CdjStatus.PlayState1 ENDED
The player reached the end of the track and stopped.
-
UNKNOWN
public static final CdjStatus.PlayState1 UNKNOWN
We received a value we don’t recognize, so we don’t know what it means.
-
-
Method Detail
-
values
public static CdjStatus.PlayState1[] 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 (CdjStatus.PlayState1 c : CdjStatus.PlayState1.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CdjStatus.PlayState1 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
-
-