Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::Plt::OSSMidiScheduler Class Reference

OSS MidiScheduler implemtation. More...

#include <OSS.h>

Inheritance diagram for TSE3::Plt::OSSMidiScheduler:

Inheritance graph
[legend]
Collaboration diagram for TSE3::Plt::OSSMidiScheduler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OSSMidiScheduler ()
virtual ~OSSMidiScheduler ()

Static Public Member Functions

std::string & fmPatchesDirectory ()
void setFmPatchesDirectory (const std::string &dir)
std::string & gusPatchesDirectory ()
void setGusPatchesDirectory (const std::string &dir)

Protected Member Functions

virtual const char * impl_implementationName () const
virtual const char * impl_portName (int port) const
virtual const char * impl_portType (int port) const
virtual bool impl_portReadable (int port) const
virtual bool impl_portWriteable (int port) const
virtual void impl_start (Clock clock)
virtual void impl_stop (Clock clock)
virtual void impl_moveTo (Clock moveTime, Clock newTime)
virtual Clock impl_clock ()
virtual int impl_msecs ()
virtual void impl_setTempo (int tempo, Clock changeTime)
virtual bool impl_eventWaiting ()
virtual MidiEvent impl_rx ()
virtual void impl_tx (MidiCommand mc)
virtual void impl_tx (MidiEvent mc)
virtual void impl_txSysEx (int port, const unsigned char *data, size_t size)

Detailed Description

OSS MidiScheduler implemtation.

This is the Open Sound System MidiScheduler implementation. It requires OSS version 3.60.

Since it opens /dev/sequencer (the OSS sequencer interface) there can only ever be one of these objects instantiated at any given time. Subsequent instanitations will throw an exception.

Before you create an object of this type you may want to call the following static member functions to set the location of patches files:

Author:
Pete Goodliffe
Version:
0.00
See also:
MidiScheduler

OSSMidiSchedulerFactory


Constructor & Destructor Documentation

TSE3::Plt::OSSMidiScheduler::OSSMidiScheduler  ) 
 

Exceptions:
TSE3::MidiSchedulerError 

virtual TSE3::Plt::OSSMidiScheduler::~OSSMidiScheduler  )  [virtual]
 


Member Function Documentation

std::string& TSE3::Plt::OSSMidiScheduler::fmPatchesDirectory  )  [static]
 

This returns in which directory the device will look for FM patch files. This must be set before the device is created.

The patches directory path can contain multiple paths, separated by colons.

See also:
setFmPatchesDirectory

void TSE3::Plt::OSSMidiScheduler::setFmPatchesDirectory const std::string &  dir  )  [static]
 

Call this before creating the OSSMidiScheduler object to set up where to look for FM patches files.

See also:
fmPatchesDirectory

std::string& TSE3::Plt::OSSMidiScheduler::gusPatchesDirectory  )  [static]
 

This returns in which directory the device will look for GUD patch files. This must be set before the device is created. (In fact, it must be set before each GUS voice is loaded - they are loaded on demand. However, it is safest to set this before creating the device.)

The patches directory path can contain multiple paths, separated by colons.

See also:
setGusPatchesDirectory

void TSE3::Plt::OSSMidiScheduler::setGusPatchesDirectory const std::string &  dir  )  [static]
 

Call this before creating the OSSMidiScheduler object to set up where to look for GUS patches files.

See also:
gusPatchesDirectory

virtual const char* TSE3::Plt::OSSMidiScheduler::impl_implementationName  )  const [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual const char* TSE3::Plt::OSSMidiScheduler::impl_portName int  port  )  const [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual const char* TSE3::Plt::OSSMidiScheduler::impl_portType int  port  )  const [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual bool TSE3::Plt::OSSMidiScheduler::impl_portReadable int  port  )  const [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual bool TSE3::Plt::OSSMidiScheduler::impl_portWriteable int  port  )  const [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_start Clock  clock  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_stop Clock  clock  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_moveTo Clock  moveTime,
Clock  newTime
[protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual Clock TSE3::Plt::OSSMidiScheduler::impl_clock  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual int TSE3::Plt::OSSMidiScheduler::impl_msecs  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_setTempo int  tempo,
Clock  changeTime
[protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual bool TSE3::Plt::OSSMidiScheduler::impl_eventWaiting  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual MidiEvent TSE3::Plt::OSSMidiScheduler::impl_rx  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_tx MidiCommand  mc  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_tx MidiEvent  mc  )  [protected, virtual]
 

Implements TSE3::MidiScheduler.

virtual void TSE3::Plt::OSSMidiScheduler::impl_txSysEx int  port,
const unsigned char *  data,
size_t  size
[protected, virtual]
 

Implements TSE3::MidiScheduler.


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:48:08 2005 for TSE3 by doxygen 1.3.2