/[svn]/libgig/trunk/src/DLS.h
ViewVC logotype

Diff of /libgig/trunk/src/DLS.h

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

revision 2546 by schoenebeck, Sat May 10 02:06:58 2014 UTC revision 2547 by schoenebeck, Tue May 13 11:17:24 2014 UTC
# Line 214  namespace DLS { Line 214  namespace DLS {
214          inline bool operator== (const range_t& other) const {          inline bool operator== (const range_t& other) const {
215              return low == other.low && high == other.high;              return low == other.low && high == other.high;
216          }          }
217    
218            inline bool overlaps(uint16_t scalar) const {
219                return low <= scalar && scalar <= high;
220            }
221    
222            inline bool overlaps(const range_t& other) const {
223                return overlaps(other.low) || overlaps(other.high) ||
224                       other.overlaps(low) || other.overlaps(high);
225            }
226      };      };
227    
228      /** Defines Sample Loop Points. */      /** Defines Sample Loop Points. */

Legend:
Removed from v.2546  
changed lines
  Added in v.2547

  ViewVC Help
Powered by ViewVC