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

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

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

revision 2100 by iliev, Tue Nov 3 19:27:42 2009 UTC revision 2101 by persson, Sun May 30 11:40:31 2010 UTC
# Line 4  Line 4 
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-2009 Christian Schoenebeck                         *
7   *   Copyright (C) 2009 Grigor Iliev                                       *   *   Copyright (C) 2009-2010 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 133  namespace LinuxSampler { namespace sf2 { Line 133  namespace LinuxSampler { namespace sf2 {
133          }          }
134    
135          // rebuild ActiveKeyGroups map with key groups of current instrument          // rebuild ActiveKeyGroups map with key groups of current instrument
136          //for (::gig::Region* pRegion = newInstrument->GetFirstRegion(); pRegion; pRegion = newInstrument->GetNextRegion())          for (int i = 0 ; i < newInstrument->GetRegionCount() ; i++) {
137          //    if (pRegion->KeyGroup) ActiveKeyGroups[pRegion->KeyGroup] = NULL;              ::sf2::Region* pRegion = newInstrument->GetRegion(i);
138          // TODO: ^^^              for (int j = 0 ; j < pRegion->pInstrument->GetRegionCount() ; j++) {
139                    ::sf2::Region* pSubRegion = pRegion->pInstrument->GetRegion(j);
140                    if (pSubRegion->exclusiveClass) ActiveKeyGroups[pSubRegion->exclusiveClass] = NULL;
141                }
142            }
143    
144          InstrumentIdxName = newInstrument->GetName();          InstrumentIdxName = newInstrument->GetName();
145          InstrumentStat = 100;          InstrumentStat = 100;

Legend:
Removed from v.2100  
changed lines
  Added in v.2101

  ViewVC Help
Powered by ViewVC