Package net.mtrop.doom.sound
Class MUS.SystemEvent
java.lang.Object
net.mtrop.doom.sound.MUS.Event
net.mtrop.doom.sound.MUS.SystemEvent
- Enclosing class:
- MUS
System event.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
protected int
The type.Fields inherited from class net.mtrop.doom.sound.MUS.Event
channel, restTics, type, TYPE_CHANGE_CONTROLLER, TYPE_PITCH, TYPE_PLAY, TYPE_RELEASE, TYPE_SCORE_END, TYPE_SYSTEM
-
Method Summary
Modifier and TypeMethodDescriptionint
void
setSystemType
(int sysType) Sets this event's sysType.byte[]
toBytes()
toString()
Methods inherited from class net.mtrop.doom.sound.MUS.Event
getChannel, getRestTics, getType, isLast, setChannel, setRestTics
-
Field Details
-
SYSTEM_SOUND_OFF
public static final int SYSTEM_SOUND_OFF- See Also:
-
SYSTEM_NOTES_OFF
public static final int SYSTEM_NOTES_OFF- See Also:
-
SYSTEM_MONO
public static final int SYSTEM_MONO- See Also:
-
SYSTEM_POLY
public static final int SYSTEM_POLY- See Also:
-
SYSTEM_RESET_ALL_CONTROLLERS
public static final int SYSTEM_RESET_ALL_CONTROLLERS- See Also:
-
sysType
protected int sysTypeThe type.
-
-
Method Details
-
getSystemType
public int getSystemType()- Returns:
- this event's sysType.
-
setSystemType
public void setSystemType(int sysType) Sets this event's sysType.- Parameters:
sysType
- the new system type.- Throws:
IllegalArgumentException
- ifsysType
is not between 10 and 14.
-
toBytes
public byte[] toBytes() -
toString
-