summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/types.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-02 02:36:05 +0000
committerDavid Robillard <d@drobilla.net>2009-02-02 02:36:05 +0000
commit166ef64e3db4ab72b7b1e7455234e2b9ceddf6d8 (patch)
tree0f28067a301556c5c0a67091c691c82960db57c1 /libs/evoral/evoral/types.hpp
parentead5dd45689be089d79a4a5daad88da737ca4cd9 (diff)
Make (MIDI) event time stamp type a template parameter.
git-svn-id: svn://localhost/ardour2/branches/3.0@4473 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/types.hpp')
-rw-r--r--libs/evoral/evoral/types.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/evoral/evoral/types.hpp b/libs/evoral/evoral/types.hpp
index 4bca6f1288..f602c7b56f 100644
--- a/libs/evoral/evoral/types.hpp
+++ b/libs/evoral/evoral/types.hpp
@@ -34,24 +34,20 @@ typedef double timestamp_t;
typedef timestamp_t timedur_t;
/** Time stamp of an event */
-typedef double EventTime;
-
-/** Time stamp of an event */
typedef double EventLength;
/** Type of an event (opaque, mapped by application) */
typedef uint32_t EventType;
/** Type to describe the movement of a time range */
+template<typename T>
struct RangeMove {
- RangeMove (EventTime f, FrameTime l, EventTime t) : from (f), length (l), to (t) {}
- EventTime from; ///< start of the range
+ RangeMove (T f, FrameTime l, T t) : from (f), length (l), to (t) {}
+ T from; ///< start of the range
FrameTime length; ///< length of the range
- EventTime to; ///< new start of the range
+ T to; ///< new start of the range
};
-typedef std::list<RangeMove> RangeMoveList;
-
} // namespace Evoral
#endif // EVORAL_TYPES_HPP