mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
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
This commit is contained in:
parent
aefa9f0938
commit
5a48f99f72
19 changed files with 99 additions and 58 deletions
|
|
@ -54,8 +54,11 @@ SequenceTest::preserveEventOrderingTest (void)
|
|||
TestSink<Time> sink;
|
||||
sink.writing.connect(sigc::mem_fun(&sink, &TestSink<Time>::assertLastEventTimeEarlier));
|
||||
|
||||
seq->read(sink, 0, 1200, 0);
|
||||
|
||||
for (MySequence<Time>::const_iterator i = seq->begin(); i != seq->end(); ++i) {
|
||||
sink.write(i->time(), i->event_type(), i->size(), i->buffer());
|
||||
}
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(size_t(12), test_notes.size());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue