summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/midi_ring_buffer.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-13 02:43:14 +0000
committerDavid Robillard <d@drobilla.net>2008-10-13 02:43:14 +0000
commit1514039689555915c4cb1f17cc09dec43f6ea1e5 (patch)
treeca8c0bd5c3893a3fb2a4164d10c0d5e6b484edd0 /libs/ardour/ardour/midi_ring_buffer.h
parent8b951bb9ee65f3d530848c3c08b8b54e6571317f (diff)
Fix pollution of global namespace by Evoral.
git-svn-id: svn://localhost/ardour2/branches/3.0@3947 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_ring_buffer.h')
-rw-r--r--libs/ardour/ardour/midi_ring_buffer.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/ardour/ardour/midi_ring_buffer.h b/libs/ardour/ardour/midi_ring_buffer.h
index 72bf7a0fe5..8bd4260283 100644
--- a/libs/ardour/ardour/midi_ring_buffer.h
+++ b/libs/ardour/ardour/midi_ring_buffer.h
@@ -47,7 +47,7 @@ public:
, _channel_mask(0x0000FFFF)
{}
- inline bool read_prefix(EventTime* time, EventType* type, uint32_t* size);
+ inline bool read_prefix(Evoral::EventTime* time, Evoral::EventType* type, uint32_t* size);
inline bool read_contents(uint32_t size, uint8_t* buf);
size_t read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes_t offset=0);
@@ -88,11 +88,11 @@ private:
* by a call to read_contents (or the read pointer will be garabage).
*/
inline bool
-MidiRingBuffer::read_prefix(EventTime* time, EventType* type, uint32_t* size)
+MidiRingBuffer::read_prefix(Evoral::EventTime* time, Evoral::EventType* type, uint32_t* size)
{
- bool success = Evoral::EventRingBuffer::full_read(sizeof(EventTime), (uint8_t*)time);
+ bool success = Evoral::EventRingBuffer::full_read(sizeof(Evoral::EventTime), (uint8_t*)time);
if (success)
- success = Evoral::EventRingBuffer::full_read(sizeof(EventType), (uint8_t*)type);
+ success = Evoral::EventRingBuffer::full_read(sizeof(Evoral::EventType), (uint8_t*)type);
if (success)
success = Evoral::EventRingBuffer::full_read(sizeof(uint32_t), (uint8_t*)size);
@@ -123,17 +123,17 @@ MidiRingBuffer::read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes_t
return 0;
}
- EventTime ev_time;
- EventType ev_type;
- uint32_t ev_size;
+ Evoral::EventTime ev_time;
+ Evoral::EventType ev_type;
+ uint32_t ev_size;
size_t count = 0;
//std::cerr << "MRB read " << start << " .. " << end << " + " << offset << std::endl;
- while (read_space() >= sizeof(EventTime) + sizeof(EventType) + sizeof(uint32_t)) {
+ while (read_space() >= sizeof(Evoral::EventTime) + sizeof(Evoral::EventType) + sizeof(uint32_t)) {
- full_peek(sizeof(EventTime), (uint8_t*)&ev_time);
+ full_peek(sizeof(Evoral::EventTime), (uint8_t*)&ev_time);
if (ev_time > end) {
//std::cerr << "MRB: PAST END (" << ev_time << " : " << end << ")" << std::endl;