#include <FluidSynthMidiDriver.h>
Inheritance diagram for FluidSynthMidiDriver:
Public Member Functions | |
FluidSynthMidiDriver () | |
Static Public Member Functions | |
static const MidiDriverDesc * | getDesc () |
Protected Member Functions | |
void | setInt (const char *name, int val) |
void | setNum (const char *name, double num) |
void | setStr (const char *name, const char *str) |
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 | |
fluid_settings_t * | _settings |
fluid_synth_t * | _synth |
int | _soundFont |
Static Private Attributes | |
static const MidiDriverDesc | desc |
Definition at line 25 of file FluidSynthMidiDriver.h.
FluidSynthMidiDriver::FluidSynthMidiDriver | ( | ) |
void FluidSynthMidiDriver::close | ( | ) | [protected, virtual] |
Close the Midi Device.
Implements LowLevelMidiDriver.
Definition at line 105 of file FluidSynthMidiDriver.cpp.
References _settings, _soundFont, and _synth.
static MidiDriver* FluidSynthMidiDriver::createInstance | ( | ) | [inline, static, private] |
static const MidiDriverDesc* FluidSynthMidiDriver::getDesc | ( | ) | [inline, static] |
Definition at line 37 of file FluidSynthMidiDriver.h.
References desc.
Referenced by InitMidiDriverVector().
virtual bool FluidSynthMidiDriver::isSampleProducer | ( | ) | [inline, protected, virtual] |
Is this a Software Synth/Sample producer.
Reimplemented from MidiDriver.
Definition at line 53 of file FluidSynthMidiDriver.h.
void FluidSynthMidiDriver::lowLevelProduceSamples | ( | sint16 * | samples, | |
uint32 | num_samples | |||
) | [protected, virtual] |
Allows LowLevelMidiDrivers to produce samples.
Reimplemented from LowLevelMidiDriver.
Definition at line 155 of file FluidSynthMidiDriver.cpp.
References _synth.
virtual bool FluidSynthMidiDriver::noTimbreSupport | ( | ) | [inline, protected, virtual] |
Is this a devices that does not Timbres?
Reimplemented from MidiDriver.
Definition at line 54 of file FluidSynthMidiDriver.h.
int FluidSynthMidiDriver::open | ( | ) | [protected, virtual] |
Open the Midi Device
Implements LowLevelMidiDriver.
Definition at line 65 of file FluidSynthMidiDriver.cpp.
References _settings, _soundFont, _synth, MidiDriver::getConfigSetting(), perr, LowLevelMidiDriver::sample_rate, setNum(), and LowLevelMidiDriver::stereo.
void FluidSynthMidiDriver::send | ( | uint32 | b | ) | [protected, virtual] |
Send a message to the Midi Device.
Implements LowLevelMidiDriver.
Definition at line 117 of file FluidSynthMidiDriver.cpp.
void FluidSynthMidiDriver::setInt | ( | const char * | name, | |
int | val | |||
) | [protected] |
void FluidSynthMidiDriver::setNum | ( | const char * | name, | |
double | num | |||
) | [protected] |
void FluidSynthMidiDriver::setStr | ( | const char * | name, | |
const char * | str | |||
) | [protected] |
fluid_settings_t* FluidSynthMidiDriver::_settings [private] |
int FluidSynthMidiDriver::_soundFont [private] |
fluid_synth_t* FluidSynthMidiDriver::_synth [private] |
Definition at line 28 of file FluidSynthMidiDriver.h.
Referenced by close(), lowLevelProduceSamples(), open(), and send().
const MidiDriver::MidiDriverDesc FluidSynthMidiDriver::desc [static, private] |
Initial value:
MidiDriver::MidiDriverDesc ("FluidSynth", createInstance)
Definition at line 31 of file FluidSynthMidiDriver.h.
Referenced by getDesc().