Public Member Functions | |
MCIMIDIStream (const std::string &device) | |
virtual void | play () |
virtual void | stop () |
virtual void | pause () |
virtual bool | isPlaying () |
virtual int | getLength () |
virtual int | getPosition () |
virtual void | setPosition (int position) |
virtual bool | getRepeat () |
virtual void | setRepeat (bool repeat) |
Static Public Member Functions | |
static MCIMIDIStream * | create (const char *filename) |
Protected Member Functions | |
void | notify (WPARAM flags) |
Definition at line 16 of file midi_mci.cpp.
|
Definition at line 35 of file midi_mci.cpp. References audiere::MCIDevice::sendCommand(). Referenced by create(). |
|
Definition at line 18 of file midi_mci.cpp. References MCIMIDIStream(), and audiere::MCIDevice::sendString(). Referenced by audiere::MCIMIDIDevice::openStream(). |
|
Returns the length of the song in milliseconds.
Implements audiere::MIDIStream. Definition at line 66 of file midi_mci.cpp. References audiere::MCIDevice::sendCommand(). Referenced by getPosition(), and play(). |
|
Returns the current position of the song in milliseconds.
Implements audiere::MIDIStream. Definition at line 70 of file midi_mci.cpp. References getLength(), and audiere::MCIDevice::sendCommand(). Referenced by play(). |
|
Returns true if this song is set to repeat.
Implements audiere::MIDIStream. Definition at line 88 of file midi_mci.cpp. |
|
Returns true if the song is currently playing, false otherwise.
Implements audiere::MIDIStream. Definition at line 62 of file midi_mci.cpp. References audiere::MCIDevice::sendCommand(). Referenced by play(), and setPosition(). |
|
Called when a 'notify' message is sent from MCI.
Reimplemented from audiere::MCIDevice. Definition at line 97 of file midi_mci.cpp. |
|
Stops playback of the song and does not change its current position. A subsequent play() will resume the song where it left off. Implements audiere::MIDIStream. Definition at line 58 of file midi_mci.cpp. References audiere::MCIDevice::sendCommand(). Referenced by stop(). |
|
Begins playback of the song and does nothing if the song is already playing. Implements audiere::MIDIStream. Definition at line 42 of file midi_mci.cpp. References getLength(), getPosition(), isPlaying(), audiere::MCIDevice::sendCommand(), and setPosition(). Referenced by notify(), and setPosition(). |
|
Sets the current position of the song.
Implements audiere::MIDIStream. Definition at line 76 of file midi_mci.cpp. References isPlaying(), play(), and audiere::MCIDevice::sendCommand(). |
|
Sets whether the song should repeat on completion. Defaults to false.
Implements audiere::MIDIStream. Definition at line 92 of file midi_mci.cpp. |
|
Stops playback of the song and seeks to the beginning.
Implements audiere::MIDIStream. Definition at line 53 of file midi_mci.cpp. References pause(), and setPosition(). Referenced by notify(). |