mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Fix insane formatting/whitespace in evoral test stuff. C'mon Hans ;)
git-svn-id: svn://localhost/ardour2/branches/3.0@5799 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cb8407d26f
commit
a2c434d5cd
5 changed files with 92 additions and 93 deletions
|
|
@ -20,15 +20,15 @@ SMFTest::takeFiveTest ()
|
|||
TestSMF smf;
|
||||
smf.open("./test/testdata/TakeFive.mid");
|
||||
CPPUNIT_ASSERT(!smf.is_empty());
|
||||
|
||||
|
||||
seq->start_write();
|
||||
smf.seek_to_start();
|
||||
|
||||
uint64_t time = 0; /* in SMF ticks */
|
||||
Evoral::Event<double> ev;
|
||||
|
||||
|
||||
const double frames_per_beat = 100.0;
|
||||
|
||||
|
||||
uint32_t delta_t = 0;
|
||||
uint32_t size = 0;
|
||||
uint8_t* buf = NULL;
|
||||
|
|
@ -36,7 +36,7 @@ SMFTest::takeFiveTest ()
|
|||
while ((ret = smf.read_event(&delta_t, &size, &buf)) >= 0) {
|
||||
ev.set(buf, size, 0.0);
|
||||
time += delta_t;
|
||||
|
||||
|
||||
if (ret > 0) { // didn't skip (meta) event
|
||||
//cerr << "read smf event type " << hex << int(buf[0]) << endl;
|
||||
// make ev.time absolute time in frames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue