public class EventCode
extends java.lang.Object
types
of events in the ID3v2.x specification.
Field | Description | |
---|---|---|
1. | eventType | the type of event that has occurred. |
2. | timeStamp | when the event occurred.
See TimeStampFormat for a list of
the supported kinds of time stamps. |
Terminating the start events such as "intro start" is not required. You may use any of the USER_DEFINED_EVENT_X codes to define your own event. You might want to synchronise your music to something, like setting off an explosion on-stage, or turning on your screensaver, etc.
Constructor and Description |
---|
EventCode(EventType eventType,
int timeStamp)
constructor for specifying when a type of event occurred.
|
Modifier and Type | Method and Description |
---|---|
EventType |
getEventType()
gets the type of event that occurred.
|
int |
getTimeStamp()
gets when event occurred.
|
public EventCode(EventType eventType, int timeStamp)
eventType
- the type of event that occurred.timeStamp
- when it occurred.public EventType getEventType()
public int getTimeStamp()