/[svn]/linuxsampler/trunk/src/engines/InstrumentManagerThread.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/InstrumentManagerThread.cpp

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

revision 2324 by persson, Sun Mar 4 09:01:32 2012 UTC revision 2326 by persson, Thu Mar 8 19:40:14 2012 UTC
# Line 110  namespace LinuxSampler { Line 110  namespace LinuxSampler {
110                  if (!empty) {                  if (!empty) {
111                      cmd = queue.front();                      cmd = queue.front();
112                      queue.pop_front();                      queue.pop_front();
113    
114                        if (cmd.type == command_t::DIRECT_LOAD) {
115                            EngineChannelFactory::SetDeleteEnabled(cmd.pEngineChannel, false);
116                        }
117                  }                  }
118                  mutex.Unlock();                  mutex.Unlock();
119                  if (empty) break;                  if (empty) break;
# Line 117  namespace LinuxSampler { Line 121  namespace LinuxSampler {
121                  try {                  try {
122                      switch (cmd.type) {                      switch (cmd.type) {
123                          case command_t::DIRECT_LOAD:                          case command_t::DIRECT_LOAD:
                             EngineChannelFactory::SetDeleteEnabled(cmd.pEngineChannel, false);  
124                              cmd.pEngineChannel->PrepareLoadInstrument(cmd.instrumentId.FileName.c_str(), cmd.instrumentId.Index);                              cmd.pEngineChannel->PrepareLoadInstrument(cmd.instrumentId.FileName.c_str(), cmd.instrumentId.Index);
125                              cmd.pEngineChannel->LoadInstrument();                              cmd.pEngineChannel->LoadInstrument();
126                              EngineChannelFactory::SetDeleteEnabled(cmd.pEngineChannel, true);                              EngineChannelFactory::SetDeleteEnabled(cmd.pEngineChannel, true);

Legend:
Removed from v.2324  
changed lines
  Added in v.2326

  ViewVC Help
Powered by ViewVC