ScummVM API documentation
Tracker Struct Reference

#include <midiparser.h>

Public Member Functions

void clear ()
 Clears all data; used by the constructor for initialization.
 

Public Attributes

byte * _playPos
 A pointer to the next event to be parsed.
 
uint32 _playTime
 Current time in microseconds; may be in between event times.
 
uint32 _playTick
 Current MIDI tick; may be in between event ticks.
 
uint32 _lastEventTime
 The time, in microseconds, of the last event that was parsed.
 
uint32 _lastEventTick
 The tick at which the last parsed event occurs.
 
byte _runningStatus
 Cached MIDI command, for MIDI streams that rely on implied event codes.
 

Detailed Description

Maintains time and position state within a MIDI stream. A single Tracker struct is used by MidiParser to keep track of its current position in the MIDI stream. The Tracker struct, however, allows alternative locations to be cached. See MidiParser::jumpToTick() for an example of tracking multiple locations within a MIDI stream. NOTE: It is important to also maintain pre-parsed EventInfo data for each Tracker location.


The documentation for this struct was generated from the following file: