ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Tracker Struct Reference

Maintains time and position state within a MIDI stream. More...

#include <midiparser.h>

List of all members.

Public Member Functions

 Tracker ()
 Tracker (const Tracker &copy)
 Copy constructor for each duplication of Tracker information.
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.

Definition at line 51 of file midiparser.h.


Constructor & Destructor Documentation

Tracker::Tracker (  )  [inline]

Definition at line 59 of file midiparser.h.

Tracker::Tracker ( const Tracker copy  )  [inline]

Copy constructor for each duplication of Tracker information.

Definition at line 62 of file midiparser.h.


Member Function Documentation

void Tracker::clear (  )  [inline]

Clears all data; used by the constructor for initialization.

Definition at line 72 of file midiparser.h.


Member Data Documentation

The tick at which the last parsed event occurs.

Definition at line 56 of file midiparser.h.

The time, in microseconds, of the last event that was parsed.

Definition at line 55 of file midiparser.h.

A pointer to the next event to be parsed.

Definition at line 52 of file midiparser.h.

Current MIDI tick; may be in between event ticks.

Definition at line 54 of file midiparser.h.

Current time in microseconds; may be in between event times.

Definition at line 53 of file midiparser.h.

Cached MIDI command, for MIDI streams that rely on implied event codes.

Definition at line 57 of file midiparser.h.


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


Generated on Sat Jan 19 2019 05:04:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge