/[svn]/linuxsampler/trunk/src/engines/InstrumentManagerBase.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/InstrumentManagerBase.h

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

revision 2026 by iliev, Fri Oct 23 17:53:17 2009 UTC revision 2027 by iliev, Tue Nov 3 19:27:42 2009 UTC
# Line 147  namespace LinuxSampler { Line 147  namespace LinuxSampler {
147              virtual void DeleteRegionIfNotUsed(R* pRegion, region_info_t* pRegInfo) = 0;              virtual void DeleteRegionIfNotUsed(R* pRegion, region_info_t* pRegInfo) = 0;
148              virtual void DeleteSampleIfNotUsed(S* pSample, region_info_t* pRegInfo) = 0;              virtual void DeleteSampleIfNotUsed(S* pSample, region_info_t* pRegInfo) = 0;
149    
150                void SetKeyBindings(uint8_t* bindingsArray, int low, int high, int undefined = -1) {
151                    if (low == undefined || high == undefined) return;
152                    if (low < 0 || low > 127 || high < 0 || high > 127 || low > high) {
153                        std::cerr << "Invalid key range: " << low << " - " << high << std::endl;
154                        return;
155                    }
156    
157                    for (int i = low; i <= high; i++) bindingsArray[i] = 1;
158                }
159    
160      };      };
161    
162      template <class F /* Instrument File */, class I /* Instrument */, class R /* Region */, class S /* Sample */>      template <class F /* Instrument File */, class I /* Instrument */, class R /* Region */, class S /* Sample */>

Legend:
Removed from v.2026  
changed lines
  Added in v.2027

  ViewVC Help
Powered by ViewVC