Apply accurate copyright header.

Shrink.


git-svn-id: svn://localhost/ardour2/branches/3.0@5905 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-24 15:35:50 +00:00
parent 0ac99a4236
commit 1716d75f9f

View file

@ -1,5 +1,5 @@
/* This file is part of Evoral.
* Copyright (C) 2008 Dave Robillard <http://drobilla.net>
* Copyright (C) 2009 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
@ -33,22 +33,16 @@ namespace Evoral {
template<typename Time>
class EventList : public std::list<Evoral::Event<Time> *>, public Evoral::EventSink<Time> {
public:
EventList() {}
uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf);
};
EventList() {}
template<typename Time>
inline uint32_t
EventList<Time>::write(Time time, EventType type, uint32_t size, const uint8_t* buf)
{
Evoral::Event<Time>* e = new Evoral::Event<Time> (type, time, size, const_cast<uint8_t*> (buf), true); // event makes copy of buffer
push_back (e);
return size;
}
uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf) {
push_back(new Evoral::Event<Time>(
type, time, size, const_cast<uint8_t*>(buf), true)); // Event copies buffer
return size;
}
};
} // namespace Evoral
#endif // EVORAL_EVENT_LIST_HPP