FluidSynthMidiDriver Class Reference

#include <FluidSynthMidiDriver.h>

Inheritance diagram for FluidSynthMidiDriver:

LowLevelMidiDriver MidiDriver XMidiSequenceHandler List of all members.

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 MidiDrivercreateInstance ()

Private Attributes

fluid_settings_t * _settings
fluid_synth_t * _synth
int _soundFont

Static Private Attributes

static const MidiDriverDesc desc

Detailed Description

Definition at line 25 of file FluidSynthMidiDriver.h.


Constructor & Destructor Documentation

FluidSynthMidiDriver::FluidSynthMidiDriver (  ) 

Definition at line 33 of file FluidSynthMidiDriver.cpp.

Referenced by createInstance().


Member Function Documentation

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]

Definition at line 32 of file FluidSynthMidiDriver.h.

References FluidSynthMidiDriver().

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

Returns:
0 on sucess. Non zero on failure.

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.

References _synth, and perr.

void FluidSynthMidiDriver::setInt ( const char *  name,
int  val 
) [protected]

Definition at line 38 of file FluidSynthMidiDriver.cpp.

References _settings.

void FluidSynthMidiDriver::setNum ( const char *  name,
double  num 
) [protected]

Definition at line 46 of file FluidSynthMidiDriver.cpp.

References _settings.

Referenced by open().

void FluidSynthMidiDriver::setStr ( const char *  name,
const char *  str 
) [protected]

Definition at line 54 of file FluidSynthMidiDriver.cpp.

References _settings.


Member Data Documentation

fluid_settings_t* FluidSynthMidiDriver::_settings [private]

Definition at line 27 of file FluidSynthMidiDriver.h.

Referenced by close(), open(), setInt(), setNum(), and setStr().

int FluidSynthMidiDriver::_soundFont [private]

Definition at line 29 of file FluidSynthMidiDriver.h.

Referenced by close(), and open().

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:

Definition at line 31 of file FluidSynthMidiDriver.h.

Referenced by getDesc().


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