From 5a48f99f72c2e2f3ed313e00446dfdaa05dc5d56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Feb 2009 01:24:26 +0000 Subject: Use nframes_t for timestamps of real (jack) time MIDI events (i.e. in MidiBuffer and MidiRingBuffer). Use iterator interface of Sequence to read events in a MIDISource rather than Sequence::read, avoiding timestamp confusion. Disable no longer useful Sequence::read. git-svn-id: svn://localhost/ardour2/branches/3.0@4570 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_playlist.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/ardour/midi_playlist.cc') diff --git a/libs/ardour/midi_playlist.cc b/libs/ardour/midi_playlist.cc index 7139447a19..6105e6cfa2 100644 --- a/libs/ardour/midi_playlist.cc +++ b/libs/ardour/midi_playlist.cc @@ -124,8 +124,7 @@ struct RegionSortByLayer { /** Returns the number of frames in time duration read (eg could be large when 0 events are read) */ nframes_t -MidiPlaylist::read (MidiRingBuffer& dst, nframes_t start, - nframes_t dur, unsigned chan_n) +MidiPlaylist::read (MidiRingBuffer& dst, nframes_t start, nframes_t dur, unsigned chan_n) { /* this function is never called from a realtime thread, so its OK to block (for short intervals). -- cgit v1.2.3