/[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 2542 by schoenebeck, Mon Nov 25 02:22:38 2013 UTC revision 2543 by schoenebeck, Sat May 10 02:06:58 2014 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file access library    *   *   libgig - C++ cross-platform Gigasampler format file access library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003-2013 by Christian Schoenebeck                      *   *   Copyright (C) 2003-2014 by Christian Schoenebeck                      *
6   *                              <cuse@users.sourceforge.net>               *   *                              <cuse@users.sourceforge.net>               *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
# Line 204  namespace DLS { Line 204  namespace DLS {
204      struct range_t {      struct range_t {
205          uint16_t low;  ///< Low value of range.          uint16_t low;  ///< Low value of range.
206          uint16_t high; ///< High value of range.          uint16_t high; ///< High value of range.
207    
208            inline bool operator< (const range_t& other) const {
209                if (low < other.low) return true;
210                if (low > other.low) return false;
211                return high < other.high;
212            }
213    
214            inline bool operator== (const range_t& other) const {
215                return low == other.low && high == other.high;
216            }
217      };      };
218    
219      /** Defines Sample Loop Points. */      /** Defines Sample Loop Points. */

Legend:
Removed from v.2542  
changed lines
  Added in v.2543

  ViewVC Help
Powered by ViewVC