audiere::MIDIStream Class Reference

#include <audiere.h>

Inheritance diagram for audiere::MIDIStream:

Inheritance graph
[legend]
Collaboration diagram for audiere::MIDIStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void play ()=0
virtual void stop ()=0
virtual void pause ()=0
virtual bool isPlaying ()=0
virtual int getLength ()=0
virtual int getPosition ()=0
virtual void setPosition (int position)=0
virtual bool getRepeat ()=0
virtual void setRepeat (bool repeat)=0

Protected Member Functions

virtual ~MIDIStream ()

Detailed Description

An opened MIDI song that can be played, stopped, and seeked within. Uses MCI under Windows and is not supported in other platforms.

Definition at line 974 of file audiere.h.


Constructor & Destructor Documentation

virtual audiere::MIDIStream::~MIDIStream  )  [inline, protected, virtual]
 

Definition at line 976 of file audiere.h.


Member Function Documentation

virtual int audiere::MIDIStream::getLength  )  [pure virtual]
 

Returns the length of the song in milliseconds.

virtual int audiere::MIDIStream::getPosition  )  [pure virtual]
 

Returns the current position of the song in milliseconds.

virtual bool audiere::MIDIStream::getRepeat  )  [pure virtual]
 

Returns true if this song is set to repeat.

virtual bool audiere::MIDIStream::isPlaying  )  [pure virtual]
 

Returns true if the song is currently playing, false otherwise.

virtual void audiere::MIDIStream::pause  )  [pure virtual]
 

Stops playback of the song and does not change its current position. A subsequent play() will resume the song where it left off.

virtual void audiere::MIDIStream::play  )  [pure virtual]
 

Begins playback of the song and does nothing if the song is already playing.

virtual void audiere::MIDIStream::setPosition int  position  )  [pure virtual]
 

Sets the current position of the song.

virtual void audiere::MIDIStream::setRepeat bool  repeat  )  [pure virtual]
 

Sets whether the song should repeat on completion. Defaults to false.

virtual void audiere::MIDIStream::stop  )  [pure virtual]
 

Stops playback of the song and seeks to the beginning.


The documentation for this class was generated from the following file:
Generated on Mon Feb 13 23:07:26 2006 for audiere by  doxygen 1.4.6