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 * |
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. */ |