13
0

* fixed test

git-svn-id: svn://localhost/ardour2/branches/3.0@4506 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2009-02-09 19:59:45 +00:00
parent 406efbd535
commit b0f94c111b

View File

@ -24,11 +24,12 @@ SequenceTest::preserveEventOrderingTest (void)
for (Notes::const_iterator i = test_notes.begin(); i != test_notes.end(); ++i) { for (Notes::const_iterator i = test_notes.begin(); i != test_notes.end(); ++i) {
uint8_t buffer[2]; uint8_t buffer[2];
Event<Time>* event = new Event<Time>( Event<Time>* event = new Event<Time>(
DummyTypeMap::CONTROL, (*i)->on_event().time(), 2, buffer, true DummyTypeMap::CONTROL, (*i)->on_event().time(), 3, buffer, true
); );
event->buffer()[0] = MIDI_CMD_CONTROL; event->buffer()[0] = MIDI_CMD_CONTROL;
event->buffer()[1] = event->time() / 100; event->buffer()[1] = event->time() / 100;
event->buffer()[2] = event->time() / 100;
boost::shared_ptr<Event<Time> > event_ptr(event); boost::shared_ptr<Event<Time> > event_ptr(event);