projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add PangoCairo lua bindings
[ardour.git]
/
tools
/
jacktest.c
diff --git
a/tools/jacktest.c
b/tools/jacktest.c
index 62a6a083760f526287326cfbda96f94c82fd6de0..d75dad5e9ebb02e0acea3fbc6355ac48e52396d5 100644
(file)
--- a/
tools/jacktest.c
+++ b/
tools/jacktest.c
@@
-10,7
+10,7
@@
jack_port_t *input_port;
jack_port_t *output_port;
jack_client_t *client;
int loopsize = 25000;
jack_port_t *output_port;
jack_client_t *client;
int loopsize = 25000;
-int xrun_occured = 0;
+int xrun_occur
r
ed = 0;
int consecutive_xruns = 0;
float first_xrun = 0.0f;
float last_load = 0.0f;
int consecutive_xruns = 0;
float first_xrun = 0.0f;
float last_load = 0.0f;
@@
-59,14
+59,14
@@
process (jack_nframes_t nframes, void *arg)
printf ("loopsize = %d\n", loopsize);
}
printf ("loopsize = %d\n", loopsize);
}
- if (xrun_occured) {
+ if (xrun_occur
r
ed) {
if (consecutive_xruns == 0) {
first_xrun = last_load;
}
consecutive_xruns++;
}
if (consecutive_xruns == 0) {
first_xrun = last_load;
}
consecutive_xruns++;
}
- xrun_occured = 0;
+ xrun_occur
r
ed = 0;
if (consecutive_xruns >= 10) {
fprintf (stderr, "Stopping with load = %f (first xrun at %f)\n", last_load, first_xrun);
if (consecutive_xruns >= 10) {
fprintf (stderr, "Stopping with load = %f (first xrun at %f)\n", last_load, first_xrun);
@@
-90,8
+90,8
@@
jack_shutdown (void *arg)
int
jack_xrun (void *arg)
{
int
jack_xrun (void *arg)
{
- fprintf (stderr, "xrun occured with loop size = %d\n", loopsize);
- xrun_occured = 1;
+ fprintf (stderr, "xrun occur
r
ed with loop size = %d\n", loopsize);
+ xrun_occur
r
ed = 1;
return 0;
}
return 0;
}