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' |
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())); |