X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2FEvent.hpp;h=7703963b95736762a3b2c4d4b6aedb46c9d0c711;hb=f219a53744c3ccced52070a0ebab5fbe7f9b9895;hp=0726a21ef504b96d1403e944631e2960651e44b1;hpb=db77cb9212f3e42030bd65555185c7b53453e634;p=ardour.git diff --git a/libs/evoral/evoral/Event.hpp b/libs/evoral/evoral/Event.hpp index 0726a21ef5..7703963b95 100644 --- a/libs/evoral/evoral/Event.hpp +++ b/libs/evoral/evoral/Event.hpp @@ -38,12 +38,12 @@ namespace Evoral { /** An event (much like a type generic jack_midi_event_t) * - * Template parameter Timestamp is the type of the time stamp used for this event. + * Template parameter Time is the type of the time stamp used for this event. */ -template +template struct Event { #ifdef EVORAL_EVENT_ALLOC - Event(EventType type=0, Timestamp timestamp=0, uint32_t size=0, uint8_t* buffer=NULL, bool alloc=false); + Event(EventType type=0, Time time=0, uint32_t size=0, uint8_t* buf=NULL, bool alloc=false); /** Copy \a copy. * @@ -89,7 +89,7 @@ struct Event { _buf = copy._buf; } - inline void set(uint8_t* buf, uint32_t size, Timestamp t) { + inline void set(uint8_t* buf, uint32_t size, Time t) { if (_owns_buf) { if (_size < size) { _buf = (uint8_t*) ::realloc(_buf, size); @@ -164,8 +164,8 @@ struct Event { inline EventType event_type() const { return _type; } inline void set_event_type(EventType t) { _type = t; } - inline Timestamp time() const { return _time; } - inline Timestamp& time() { return _time; } + inline Time time() const { return _time; } + inline Time& time() { return _time; } inline uint32_t size() const { return _size; } inline uint32_t& size() { return _size; } @@ -174,7 +174,7 @@ struct Event { protected: EventType _type; /**< Type of event (application relative, NOT MIDI 'type') */ - Timestamp _time; /**< Sample index (or beat time) at which event is valid */ + Time _time; /**< Sample index (or beat time) at which event is valid */ uint32_t _size; /**< Number of uint8_ts of data in \a buffer */ uint8_t* _buf; /**< Raw MIDI data */