![]() |
Om
1.0.0
A universal framework for multimedia simulation
|
A class that stores a MIDI sequence. More...
#include <omSoundMIDI.h>
Public Member Functions | |
| virtual Bool | canSeek () const |
| Return whether or not seeking is allowed in this input stream. More... | |
| virtual Bool | canSeek (const Time &timeOffset) const |
| Return whether or not this stream's current position can be moved by the specified time offset. More... | |
| virtual Time | seek (const Time &timeOffset) |
| Move the current position in the stream by the specified signed time offset in seconds. More... | |
| virtual Time | getTimeRemaining () const |
| Return the number of seconds remaining in the MIDI input stream. More... | |
| virtual Time | getTime () const |
| Return the current position of the stream in seconds relative to the start of the stream. More... | |
Public Member Functions inherited from om::sound::base::MIDIInputStream | |
| virtual | ~MIDIInputStream () |
| Destroy this MIDI input stream and release any resources associated with it. More... | |
| Size | read (MIDIBuffer &buffer, const Time &length) |
| Read MIDI events into the buffer for the next time interval of the specified length. More... | |
| Bool | hasTimeRemaining () const |
| Return whether or not this MIDI input stream has any time remaining in the stream. More... | |
Static Public Attributes | |
| static const om::resources::ResourceType | RESOURCE_TYPE |
| The resource type for a MIDI resource. More... | |
Protected Member Functions | |
| virtual Size | readEvents (MIDIBuffer &buffer, const Time &length) |
| Read the specified number of MIDI events from the input stream into the output buffer. More... | |
A class that stores a MIDI sequence.
|
virtual |
Return whether or not seeking is allowed in this input stream.
Reimplemented from om::sound::base::MIDIInputStream.
Return whether or not this stream's current position can be moved by the specified time offset.
Reimplemented from om::sound::base::MIDIInputStream.
Move the current position in the stream by the specified signed time offset in seconds.
Reimplemented from om::sound::base::MIDIInputStream.
|
virtual |
Return the number of seconds remaining in the MIDI input stream.
Implements om::sound::base::MIDIInputStream.
|
virtual |
Return the current position of the stream in seconds relative to the start of the stream.
Implements om::sound::base::MIDIInputStream.
|
protectedvirtual |
Read the specified number of MIDI events from the input stream into the output buffer.
Implements om::sound::base::MIDIInputStream.
|
static |
The resource type for a MIDI resource.
1.8.11