mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
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:
parent
0ac99a4236
commit
1716d75f9f
1 changed files with 8 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
/* This file is part of Evoral.
|
/* 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
|
* 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
|
* terms of the GNU General Public License as published by the Free Software
|
||||||
|
|
@ -35,20 +35,14 @@ class EventList : public std::list<Evoral::Event<Time> *>, public Evoral::EventS
|
||||||
public:
|
public:
|
||||||
EventList() {}
|
EventList() {}
|
||||||
|
|
||||||
uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf);
|
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
|
||||||
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;
|
return size;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
} // namespace Evoral
|
} // namespace Evoral
|
||||||
|
|
||||||
#endif // EVORAL_EVENT_LIST_HPP
|
#endif // EVORAL_EVENT_LIST_HPP
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue