X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2FEventSink.hpp;h=2fd2e7591abe425c50bb790a27100af720d06be7;hb=f219a53744c3ccced52070a0ebab5fbe7f9b9895;hp=67b33d69653f0748d7b7504b889b3efd4e5f1579;hpb=6f8cd634501efd70711b148b4ac0e0ce2aa5cc95;p=ardour.git diff --git a/libs/evoral/evoral/EventSink.hpp b/libs/evoral/evoral/EventSink.hpp index 67b33d6965..2fd2e7591a 100644 --- a/libs/evoral/evoral/EventSink.hpp +++ b/libs/evoral/evoral/EventSink.hpp @@ -19,19 +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 ~EventSink() {} - 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; };