summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/types.hpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-05-19 03:03:28 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-05-19 03:03:28 +0000
commite258b2622a4386b405c2216d79b34887c3ed55bf (patch)
treec2abdacc5a31e9d572257050256c704b41fb46f5 /libs/evoral/evoral/types.hpp
parentc25c7598c134af88bb85b5690aabc35472c77adf (diff)
MIDI region forking, plus Playlist::regions_to_read() fix forward ported from 2.X. region forking requires a few cleanups
git-svn-id: svn://localhost/ardour2/branches/3.0@7118 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/types.hpp')
-rw-r--r--libs/evoral/evoral/types.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/evoral/evoral/types.hpp b/libs/evoral/evoral/types.hpp
index 2ba5ba86cb..a2cc814c69 100644
--- a/libs/evoral/evoral/types.hpp
+++ b/libs/evoral/evoral/types.hpp
@@ -22,6 +22,7 @@
#include <stdint.h>
#include <list>
#include <cmath>
+#include <cfloat>
namespace Evoral {
@@ -30,6 +31,8 @@ typedef uint32_t FrameTime;
/** Musical time: beats relative to some defined origin */
typedef double MusicalTime;
+const MusicalTime MaxMusicalTime = DBL_MAX;
+const MusicalTime MinMusicalTime = DBL_MIN;
static inline bool musical_time_equal (MusicalTime a, MusicalTime b) {
/* acceptable tolerance is 1 tick. Nice if there was no magic number here */