projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move MIDI filters imprecise handling from 2nd pass to 1st
[ardour.git]
/
libs
/
ardour
/
cycle_timer.cc
diff --git
a/libs/ardour/cycle_timer.cc
b/libs/ardour/cycle_timer.cc
index 84dafd00cc30a6b0498772fb4cd3c98acf446aad..4742d9617403c7095577a42641a23584943eb5f7 100644
(file)
--- a/
libs/ardour/cycle_timer.cc
+++ b/
libs/ardour/cycle_timer.cc
@@
-24,7
+24,7
@@
#include "ardour/libardour_visibility.h"
#include "ardour/libardour_visibility.h"
-#include "i18n.h"
+#include "
pbd/
i18n.h"
using namespace std;
using namespace PBD;
using namespace std;
using namespace PBD;
@@
-85,8
+85,8
@@
StoringTimer::StoringTimer (int N)
_max_points = N;
_points = 0;
}
_max_points = N;
_points = 0;
}
-
+#ifndef NDEBUG
void
StoringTimer::dump (string const & file)
{
void
StoringTimer::dump (string const & file)
{
@@
-98,6
+98,7
@@
StoringTimer::dump (string const & file)
f << _point[i] << " " << _ref[i] << " " << _value[i] << "\n";
}
}
f << _point[i] << " " << _ref[i] << " " << _value[i] << "\n";
}
}
+#endif
void
StoringTimer::ref ()
void
StoringTimer::ref ()
@@
-114,11
+115,11
@@
StoringTimer::check (int p)
} else if (_points > _max_points) {
return;
}
} else if (_points > _max_points) {
return;
}
-
+
_point[_points] = p;
_value[_points] = get_cycles ();
_ref[_points] = _current_ref;
_point[_points] = p;
_value[_points] = get_cycles ();
_ref[_points] = _current_ref;
-
+
++_points;
}
++_points;
}