X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2Ftypes.hpp;h=f602c7b56fcbed9d451670d41525183a41becdad;hb=13bcd4342315eb20d5a27a06ba03f6890e20478a;hp=e078a69a03e6ddb5e6436e6ba9d94c358b5d0352;hpb=d357eca668044badcb4bab318e2e74cfffa9a0b0;p=ardour.git diff --git a/libs/evoral/evoral/types.hpp b/libs/evoral/evoral/types.hpp index e078a69a03..f602c7b56f 100644 --- a/libs/evoral/evoral/types.hpp +++ b/libs/evoral/evoral/types.hpp @@ -19,8 +19,13 @@ #ifndef EVORAL_TYPES_HPP #define EVORAL_TYPES_HPP +#include +#include + +namespace Evoral { + /** Frame count (i.e. length of time in audio frames) */ -typedef uint32_t nframes_t; +typedef uint32_t FrameTime; /** Time-stamp of an event */ typedef double timestamp_t; @@ -28,4 +33,21 @@ typedef double timestamp_t; /** Duration of time in timestamp_t units */ typedef timestamp_t timedur_t; +/** 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 +struct RangeMove { + 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 + T to; ///< new start of the range +}; + +} // namespace Evoral + #endif // EVORAL_TYPES_HPP