From 398a318934769dae51efe972f7ffdefc52ea2963 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Nov 2016 05:14:55 -0500 Subject: Fix event type and parameter type confusion I'm not sure if this is really the best way to do event types (should it just be a completely static enum in evoral, or completely dynamic and provided by the type map, or a mix like currently?), but previously the event type was frequently set to either total garbage, or parameter types, which are a different thing. This fixes all those cases, and makes Evoral::EventType an enum so the compiler will warn about implicit conversions from int. --- libs/ardour/midi_diskstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/midi_diskstream.cc') diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc index 22a3df1145..675d1db0bf 100644 --- a/libs/ardour/midi_diskstream.cc +++ b/libs/ardour/midi_diskstream.cc @@ -445,7 +445,7 @@ MidiDiskstream::process (BufferSet& bufs, framepos_t transport_frame, pframes_t } if (!filter || !filter->filter(ev.buffer(), ev.size())) { - _capture_buf->write(event_time, ev.type(), ev.size(), ev.buffer()); + _capture_buf->write(event_time, ev.event_type(), ev.size(), ev.buffer()); } } g_atomic_int_add(const_cast(&_frames_pending_write), nframes); -- cgit v1.2.3