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

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

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

revision 2113 by persson, Sun May 30 11:40:31 2010 UTC revision 2114 by persson, Tue Aug 10 12:05:19 2010 UTC
# Line 95  namespace LinuxSampler { namespace sfz { Line 95  namespace LinuxSampler { namespace sfz {
95          cmd.pRegionsInUse->clear();          cmd.pRegionsInUse->clear();
96    
97          // delete all key groups          // delete all key groups
98          ActiveKeyGroups.clear();          DeleteGroupEventLists();
99    
100          // request sfz instrument from instrument manager          // request sfz instrument from instrument manager
101          ::sfz::Instrument* newInstrument;          ::sfz::Instrument* newInstrument;
# Line 137  namespace LinuxSampler { namespace sfz { Line 137  namespace LinuxSampler { namespace sfz {
137          // rebuild ActiveKeyGroups map with key groups of current instrument          // rebuild ActiveKeyGroups map with key groups of current instrument
138          for (std::vector< ::sfz::Region*>::iterator itRegion = newInstrument->regions.begin() ;          for (std::vector< ::sfz::Region*>::iterator itRegion = newInstrument->regions.begin() ;
139               itRegion != newInstrument->regions.end() ; ++itRegion) {               itRegion != newInstrument->regions.end() ; ++itRegion) {
140              if ((*itRegion)->group) ActiveKeyGroups[(*itRegion)->group] = NULL;              AddGroup((*itRegion)->group);
141                AddGroup((*itRegion)->off_by);
142          }          }
143    
144          InstrumentIdxName = newInstrument->GetName();          InstrumentIdxName = newInstrument->GetName();

Legend:
Removed from v.2113  
changed lines
  Added in v.2114

  ViewVC Help
Powered by ViewVC