ardour
|
#include <smf_source.h>
Public Member Functions | |
Event (EventType type=0, Time time=Time(), uint32_t size=0, uint8_t *buf=NULL, bool alloc=false) | |
Event (EventType type, Time time, uint32_t size, const uint8_t *buf) | |
Event (const Event ©, bool alloc) | |
~Event () | |
const Event & | operator= (const Event ©) |
void | set (const uint8_t *buf, uint32_t size, Time t) |
bool | operator== (const Event &other) const |
bool | operator!= (const Event &other) const |
bool | owns_buffer () const |
void | set_buffer (uint32_t size, uint8_t *buf, bool own) |
void | realloc (uint32_t size) |
void | clear () |
EventType | event_type () const |
Time | time () const |
Time | original_time () const |
uint32_t | size () const |
const uint8_t * | buffer () const |
uint8_t * | buffer () |
void | set_event_type (EventType t) |
void | set_time (Time) |
void | set_original_time (Time) |
event_id_t | id () const |
void | set_id (event_id_t n) |
Protected Attributes | |
EventType | _type |
Time | _original_time |
Time | _nominal_time |
uint32_t | _size |
uint8_t * | _buf |
event_id_t | _id |
bool | _owns_buf |
An event (much like a type generic jack_midi_event_t)
Template parameter Time is the type of the time stamp used for this event.
Definition at line 30 of file smf_source.h.
Evoral::Event< Time >::Event | ( | EventType | type = 0 , |
Time | time = Time() , |
||
uint32_t | size = 0 , |
||
uint8_t * | buf = NULL , |
||
bool | alloc = false |
||
) |
Evoral::Event< Time >::Event | ( | EventType | type, |
Time | time, | ||
uint32_t | size, | ||
const uint8_t * | buf | ||
) |
Evoral::Event< Time >::Event | ( | const Event< Time > & | copy, |
bool | alloc | ||
) |
Copy copy.
If alloc is true, the buffer will be copied and this method is NOT REALTIME SAFE. Otherwise both events share a buffer and memory management semantics are the caller's problem.
Evoral::Event< Time >::~Event | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const Event& Evoral::Event< Time >::operator= | ( | const Event< Time > & | copy | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void Evoral::Event< Time >::set | ( | const uint8_t * | buf, |
uint32_t | size, | ||
Time | t | ||
) |
|
inline |
|
inline |
|
inline |
void Evoral::Event< Time >::set_original_time | ( | Time | ) |
void Evoral::Event< Time >::set_time | ( | Time | ) |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |