mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Fix build of evoral tests
Fix compile errors in libs/evoral/test/, by explicitly calling Evoral::MusicalTime::to_double() wherever a double value is required of a MusicalTime. Some of the double variables should probably really be made into MusicalTime ones instead, but I don't want to mess with this too much. takeFiveTest still fails for me after this, but a failing test is probably more informative in the long run than a test that won't even compile.
This commit is contained in:
parent
1f58f81aa6
commit
3a6c9e3bb9
2 changed files with 12 additions and 12 deletions
|
|
@ -30,8 +30,8 @@ SequenceTest::preserveEventOrderingTest ()
|
|||
);
|
||||
|
||||
event->buffer()[0] = MIDI_CMD_CONTROL;
|
||||
event->buffer()[1] = event->time() / 1000;
|
||||
event->buffer()[2] = event->time() / 1000;
|
||||
event->buffer()[1] = event->time().to_double() / 1000;
|
||||
event->buffer()[2] = event->time().to_double() / 1000;
|
||||
|
||||
boost::shared_ptr<Event<Time> > event_ptr(event);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue