/[svn]/linuxsampler/trunk/src/Sampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.cpp

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

revision 1130 by iliev, Sun Mar 25 18:59:14 2007 UTC revision 1283 by iliev, Fri Aug 10 15:06:11 2007 UTC
# Line 27  Line 27 
27    
28  #include "engines/EngineFactory.h"  #include "engines/EngineFactory.h"
29  #include "engines/EngineChannelFactory.h"  #include "engines/EngineChannelFactory.h"
30    #include "engines/InstrumentEditorFactory.h"
31  #include "drivers/audio/AudioOutputDeviceFactory.h"  #include "drivers/audio/AudioOutputDeviceFactory.h"
32  #include "drivers/midi/MidiInputDeviceFactory.h"  #include "drivers/midi/MidiInputDeviceFactory.h"
33  #include "drivers/midi/MidiInstrumentMapper.h"  #include "drivers/midi/MidiInstrumentMapper.h"
# Line 66  namespace LinuxSampler { Line 67  namespace LinuxSampler {
67    
68      void SamplerChannel::SetEngineType(String EngineType) throw (Exception) {      void SamplerChannel::SetEngineType(String EngineType) throw (Exception) {
69          dmsg(2,("SamplerChannel: Assigning engine type..."));          dmsg(2,("SamplerChannel: Assigning engine type..."));
70            
71            if (pEngineChannel) {
72                if (!strcasecmp(pEngineChannel->EngineName().c_str(), EngineType.c_str())) {
73                    dmsg(2,("OK\n"));
74                    return;
75                }
76            }
77    
78          // create new engine channel          // create new engine channel
79          EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType);          EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType);
# Line 598  namespace LinuxSampler { Line 606  namespace LinuxSampler {
606              std::cerr << "Sampler::Reset(): Exception occured while trying to delete all MIDI instrument maps, exiting.\n" << std::flush;              std::cerr << "Sampler::Reset(): Exception occured while trying to delete all MIDI instrument maps, exiting.\n" << std::flush;
607              exit(EXIT_FAILURE);              exit(EXIT_FAILURE);
608          }          }
609    
610            // unload all instrument editor DLLs
611            InstrumentEditorFactory::ClosePlugins();
612      }      }
613    
614  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.1130  
changed lines
  Added in v.1283

  ViewVC Help
Powered by ViewVC