/[svn]/linuxsampler/trunk/src/drivers/midi/MidiInputDeviceFactory.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/midi/MidiInputDeviceFactory.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1480 by schoenebeck, Sun Oct 14 22:00:17 2007 UTC revision 1481 by senoner, Wed Nov 14 23:42:15 2007 UTC
# Line 37  Line 37 
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;
# Line 63  namespace LinuxSampler { Line 66  namespace LinuxSampler {
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

Legend:
Removed from v.1480  
changed lines
  Added in v.1481

  ViewVC Help
Powered by ViewVC