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

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

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

revision 1826 by iliev, Wed Sep 3 17:18:51 2008 UTC revision 1827 by iliev, Mon Jan 26 17:27:29 2009 UTC
# Line 25  Line 25 
25  #include "../../engines/EngineFactory.h"  #include "../../engines/EngineFactory.h"
26  #include "../../engines/Engine.h"  #include "../../engines/Engine.h"
27    
28    #include <RIFF.h>
29    
30  namespace LinuxSampler {  namespace LinuxSampler {
31    
32      // same as entry_t but without 'LoadMode'      // same as entry_t but without 'LoadMode'
# Line 149  namespace LinuxSampler { Line 151  namespace LinuxSampler {
151                  if (bInBackground)                  if (bInBackground)
152                      pEngine->GetInstrumentManager()->SetModeInBackground(id, static_cast<InstrumentManager::mode_t>(Entry.LoadMode));                      pEngine->GetInstrumentManager()->SetModeInBackground(id, static_cast<InstrumentManager::mode_t>(Entry.LoadMode));
153                  else                  else
154                      pEngine->GetInstrumentManager()->SetMode(id, static_cast<InstrumentManager::mode_t>(Entry.LoadMode));                      try { pEngine->GetInstrumentManager()->SetMode(id, static_cast<InstrumentManager::mode_t>(Entry.LoadMode)); }
155                        catch (RIFF::Exception e) { throw Exception(e.Message); }
156              }              }
157          } else {          } else {
158              dmsg(1,("WARNING: no InstrumentManager for engine '%s'\n",Entry.EngineName.c_str()));              dmsg(1,("WARNING: no InstrumentManager for engine '%s'\n",Entry.EngineName.c_str()));

Legend:
Removed from v.1826  
changed lines
  Added in v.1827

  ViewVC Help
Powered by ViewVC