/[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 1835 by iliev, Mon Feb 16 17:56:50 2009 UTC revision 1843 by iliev, Sat Feb 21 17:08:18 2009 UTC
# Line 939  namespace LinuxSampler { namespace gig { Line 939  namespace LinuxSampler { namespace gig {
939          return LS_GIG_ENGINE_NAME;          return LS_GIG_ENGINE_NAME;
940      }      }
941    
942        void EngineChannel::ClearDimRegionsInUse() {
943            {
944                instrument_change_command_t& cmd = InstrumentChangeCommand.GetConfigForUpdate();
945                if(cmd.pDimRegionsInUse != NULL) cmd.pDimRegionsInUse->clear();
946            }
947            {
948                instrument_change_command_t& cmd = InstrumentChangeCommand.SwitchConfig();
949                if(cmd.pDimRegionsInUse != NULL) cmd.pDimRegionsInUse->clear();
950            }
951        }
952    
953        void EngineChannel::ResetDimRegionsInUse() {
954            {
955                instrument_change_command_t& cmd = InstrumentChangeCommand.GetConfigForUpdate();
956                if(cmd.pDimRegionsInUse != NULL) {
957                    delete cmd.pDimRegionsInUse;
958                    cmd.pDimRegionsInUse = new RTList< ::gig::DimensionRegion*>(pEngine->pDimRegionPool[0]);
959                }
960            }
961            {
962                instrument_change_command_t& cmd = InstrumentChangeCommand.SwitchConfig();
963                if(cmd.pDimRegionsInUse != NULL) {
964                    delete cmd.pDimRegionsInUse;
965                    cmd.pDimRegionsInUse = new RTList< ::gig::DimensionRegion*>(pEngine->pDimRegionPool[1]);
966                }
967            }
968        }
969    
970  }} // namespace LinuxSampler::gig  }} // namespace LinuxSampler::gig

Legend:
Removed from v.1835  
changed lines
  Added in v.1843

  ViewVC Help
Powered by ViewVC