X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2FEventSink.hpp;h=11daf1f64e1746dc66f02582c896432367a25adb;hb=f3fc6195bc6136a31b08ffe8c260a64efe77f9dc;hp=5f0610e15f354efed387fb18b8abf1a66bed1886;hpb=fa4bca989b18259456ec713b8f02e061ec8bc8e2;p=ardour.git diff --git a/libs/evoral/evoral/EventSink.hpp b/libs/evoral/evoral/EventSink.hpp index 5f0610e15f..11daf1f64e 100644 --- a/libs/evoral/evoral/EventSink.hpp +++ b/libs/evoral/evoral/EventSink.hpp @@ -1,16 +1,16 @@ /* This file is part of Evoral. * Copyright (C) 2008 Dave Robillard * Copyright (C) 2000-2008 Paul Davis - * + * * Evoral is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * Evoral is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -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 uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf) = 0; };