37 |
# include "MidiInputDeviceMidiShare.h" |
# include "MidiInputDeviceMidiShare.h" |
38 |
#endif // HAVE_MIDISHARE |
#endif // HAVE_MIDISHARE |
39 |
|
|
40 |
|
#if HAVE_MME_MIDI |
41 |
|
# include "MidiInputDeviceMme.h" |
42 |
|
#endif // HAVE_MME_MIDI |
43 |
namespace LinuxSampler { |
namespace LinuxSampler { |
44 |
|
|
45 |
std::map<String, MidiInputDeviceFactory::InnerFactory*> MidiInputDeviceFactory::InnerFactories; |
std::map<String, MidiInputDeviceFactory::InnerFactory*> MidiInputDeviceFactory::InnerFactories; |
66 |
REGISTER_MIDI_INPUT_DRIVER_PARAMETER(MidiInputDeviceMidiShare, ParameterPorts); |
REGISTER_MIDI_INPUT_DRIVER_PARAMETER(MidiInputDeviceMidiShare, ParameterPorts); |
67 |
#endif // HAVE_MIDISHARE |
#endif // HAVE_MIDISHARE |
68 |
|
|
69 |
|
#if HAVE_MME_MIDI |
70 |
|
REGISTER_MIDI_INPUT_DRIVER(MidiInputDeviceMme); |
71 |
|
/* Common parameters */ |
72 |
|
REGISTER_MIDI_INPUT_DRIVER_PARAMETER(MidiInputDeviceMme, ParameterActive); |
73 |
|
REGISTER_MIDI_INPUT_DRIVER_PARAMETER(MidiInputDeviceMme, ParameterPorts); |
74 |
|
#endif // HAVE_MME_MIDI |
75 |
|
|
76 |
MidiInputDevice* MidiInputDeviceFactory::Create(String DriverName, std::map<String,String> Parameters, Sampler* pSampler) throw (Exception) { |
MidiInputDevice* MidiInputDeviceFactory::Create(String DriverName, std::map<String,String> Parameters, Sampler* pSampler) throw (Exception) { |
77 |
if (!InnerFactories.count(DriverName)) throw Exception("There is no midi input driver '" + DriverName + "'."); |
if (!InnerFactories.count(DriverName)) throw Exception("There is no midi input driver '" + DriverName + "'."); |
78 |
//Let's see if we need to create parameters |
//Let's see if we need to create parameters |