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

Diff of /linuxsampler/trunk/src/engines/gig/EngineChannel.cpp

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

revision 2613 by schoenebeck, Tue Jun 10 13:32:16 2014 UTC revision 2614 by schoenebeck, Tue Jun 10 17:22:48 2014 UTC
# Line 157  namespace LinuxSampler { namespace gig { Line 157  namespace LinuxSampler { namespace gig {
157          InstrumentIdxName = newInstrument->pInfo->Name;          InstrumentIdxName = newInstrument->pInfo->Name;
158          InstrumentStat = 100;          InstrumentStat = 100;
159    
160          cmd = ChangeInstrument(newInstrument);          {
161          if (cmd.pScript) {              InstrumentChangeCmd< ::gig::DimensionRegion, ::gig::Instrument>& cmd =
162              // give old instrument script back to instrument resource manager                  ChangeInstrument(newInstrument);
163              cmd.pScript->resetAll();              if (cmd.pScript) {
164                    // give old instrument script back to instrument resource manager
165                    cmd.pScript->resetAll();
166                }
167          }          }
168    
169          StatusChanged(true);          StatusChanged(true);

Legend:
Removed from v.2613  
changed lines
  Added in v.2614

  ViewVC Help
Powered by ViewVC