/[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 2113 by persson, Sat Jan 9 09:37:01 2010 UTC revision 2114 by persson, Tue Aug 10 12:05:19 2010 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck    *   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck    *
6   *   Copyright (C) 2005-2009 Christian Schoenebeck                         *   *   Copyright (C) 2005-2008 Christian Schoenebeck                         *
7   *   Copyright (C) 2009 Grigor Iliev                                       *   *   Copyright (C) 2009-2010 Christian Schoenebeck and Grigor Iliev        *
8   *                                                                         *   *                                                                         *
9   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
10   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 91  namespace LinuxSampler { namespace gig { Line 91  namespace LinuxSampler { namespace gig {
91          cmd.pRegionsInUse->clear();          cmd.pRegionsInUse->clear();
92    
93          // delete all key groups          // delete all key groups
94          ActiveKeyGroups.clear();          DeleteGroupEventLists();
95    
96          // request gig instrument from instrument manager          // request gig instrument from instrument manager
97          ::gig::Instrument* newInstrument;          ::gig::Instrument* newInstrument;
# Line 131  namespace LinuxSampler { namespace gig { Line 131  namespace LinuxSampler { namespace gig {
131          // counter for each region          // counter for each region
132          int region = 0;          int region = 0;
133          for (::gig::Region* pRegion = newInstrument->GetFirstRegion(); pRegion; pRegion = newInstrument->GetNextRegion()) {          for (::gig::Region* pRegion = newInstrument->GetFirstRegion(); pRegion; pRegion = newInstrument->GetNextRegion()) {
134              if (pRegion->KeyGroup) ActiveKeyGroups[pRegion->KeyGroup] = NULL;              AddGroup(pRegion->KeyGroup);
135    
136              RoundRobinIndexes[region] = 0;              RoundRobinIndexes[region] = 0;
137              for (int iKey = pRegion->KeyRange.low; iKey <= pRegion->KeyRange.high; iKey++) {              for (int iKey = pRegion->KeyRange.low; iKey <= pRegion->KeyRange.high; iKey++) {

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

  ViewVC Help
Powered by ViewVC