TimidityMidiDriver Class Reference

#include <TimidityMidiDriver.h>

Inheritance diagram for TimidityMidiDriver:

LowLevelMidiDriver MidiDriver XMidiSequenceHandler List of all members.

Public Member Functions

 TimidityMidiDriver ()

Static Public Member Functions

static const MidiDriverDesc * getDesc ()

Protected Member Functions

virtual int open ()
virtual void close ()
virtual void send (uint32 b)
virtual void lowLevelProduceSamples (sint16 *samples, uint32 num_samples)
virtual bool isSampleProducer ()
virtual bool noTimbreSupport ()

Static Private Member Functions

static MidiDrivercreateInstance ()

Private Attributes

bool used_inst [128]
bool used_drums [128]

Static Private Attributes

static const MidiDriverDesc desc

Detailed Description

Definition at line 26 of file TimidityMidiDriver.h.


Constructor & Destructor Documentation

TimidityMidiDriver::TimidityMidiDriver (  ) 

Definition at line 37 of file TimidityMidiDriver.cpp.

Referenced by createInstance().


Member Function Documentation

void TimidityMidiDriver::close (  )  [protected, virtual]

Close the Midi Device.

Implements LowLevelMidiDriver.

Definition at line 102 of file TimidityMidiDriver.cpp.

References NS_TIMIDITY::Timidity_DeInit().

static MidiDriver* TimidityMidiDriver::createInstance (  )  [inline, static, private]

Definition at line 33 of file TimidityMidiDriver.h.

References TimidityMidiDriver().

static const MidiDriverDesc* TimidityMidiDriver::getDesc (  )  [inline, static]

Definition at line 38 of file TimidityMidiDriver.h.

References desc.

Referenced by InitMidiDriverVector().

virtual bool TimidityMidiDriver::isSampleProducer (  )  [inline, protected, virtual]

Is this a Software Synth/Sample producer.

Reimplemented from MidiDriver.

Definition at line 49 of file TimidityMidiDriver.h.

void TimidityMidiDriver::lowLevelProduceSamples ( sint16 samples,
uint32  num_samples 
) [protected, virtual]

Allows LowLevelMidiDrivers to produce samples.

Reimplemented from LowLevelMidiDriver.

Definition at line 112 of file TimidityMidiDriver.cpp.

References NS_TIMIDITY::Timidity_GenerateSamples().

virtual bool TimidityMidiDriver::noTimbreSupport (  )  [inline, protected, virtual]

Is this a devices that does not Timbres?

Reimplemented from MidiDriver.

Definition at line 50 of file TimidityMidiDriver.h.

int TimidityMidiDriver::open (  )  [protected, virtual]

Open the Midi Device

Returns:
0 on sucess. Non zero on failure.

Implements LowLevelMidiDriver.

Definition at line 42 of file TimidityMidiDriver.cpp.

References Pentagram::encoding, GameData::get_instance(), GameData::getMusic(), MusicFlex::getXMidi(), perr, LowLevelMidiDriver::sample_rate, LowLevelMidiDriver::stereo, NS_TIMIDITY::Timidity_Error(), NS_TIMIDITY::Timidity_FinalInit(), NS_TIMIDITY::Timidity_Init_Simple(), used_drums, used_inst, and x.

void TimidityMidiDriver::send ( uint32  b  )  [protected, virtual]

Send a message to the Midi Device.

Implements LowLevelMidiDriver.

Definition at line 107 of file TimidityMidiDriver.cpp.

References NS_TIMIDITY::Timidity_PlayEvent().


Member Data Documentation

const MidiDriver::MidiDriverDesc TimidityMidiDriver::desc [static, private]

Initial value:

Definition at line 32 of file TimidityMidiDriver.h.

Referenced by getDesc().

bool TimidityMidiDriver::used_drums[128] [private]

Definition at line 30 of file TimidityMidiDriver.h.

Referenced by open().

bool TimidityMidiDriver::used_inst[128] [private]

Definition at line 29 of file TimidityMidiDriver.h.

Referenced by open().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:03 2007 for pentagram by  doxygen 1.4.7