X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2FEventSink.hpp;h=2fd2e7591abe425c50bb790a27100af720d06be7;hb=837bfc9af44c5b6c1eeb14e7af8d9ec62c59aac6;hp=fde6399f2e1c5664e535fd3ab19ed844122b5295;hpb=d357eca668044badcb4bab318e2e74cfffa9a0b0;p=ardour.git diff --git a/libs/evoral/evoral/EventSink.hpp b/libs/evoral/evoral/EventSink.hpp index fde6399f2e..2fd2e7591a 100644 --- a/libs/evoral/evoral/EventSink.hpp +++ b/libs/evoral/evoral/EventSink.hpp @@ -19,18 +19,18 @@ #ifndef EVORAL_EVENT_SINK_HPP #define EVORAL_EVENT_SINK_HPP -#include +#include "evoral/types.hpp" namespace Evoral { /** Pure virtual base for anything you can write events to. */ +template class EventSink { public: - virtual size_t write(timestamp_t time, - uint32_t size, - const uint8_t* buf) = 0; + virtual ~EventSink() {} + virtual uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf) = 0; };