#include <TimidityMidiDriver.h>
Inheritance diagram for TimidityMidiDriver:
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 MidiDriver * | createInstance () |
Private Attributes | |
bool | used_inst [128] |
bool | used_drums [128] |
Static Private Attributes | |
static const MidiDriverDesc | desc |
Definition at line 26 of file TimidityMidiDriver.h.
TimidityMidiDriver::TimidityMidiDriver | ( | ) |
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] |
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
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().
const MidiDriver::MidiDriverDesc TimidityMidiDriver::desc [static, private] |
Initial value:
MidiDriver::MidiDriverDesc ("Timidity", createInstance)
Definition at line 32 of file TimidityMidiDriver.h.
Referenced by getDesc().
bool TimidityMidiDriver::used_drums[128] [private] |
bool TimidityMidiDriver::used_inst[128] [private] |