X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fjacktest.c;h=d75dad5e9ebb02e0acea3fbc6355ac48e52396d5;hb=c55c8141776ff97765875617af7b38d6236633a7;hp=a0b97400b7ccbbb399638458d923c4d593a0d6ee;hpb=d09f6b3016bacbc2871a8946cbb24ad705076509;p=ardour.git diff --git a/tools/jacktest.c b/tools/jacktest.c index a0b97400b7..d75dad5e9e 100644 --- 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; -int xrun_occured = 0; +int xrun_occurred = 0; int consecutive_xruns = 0; float first_xrun = 0.0f; float last_load = 0.0f; @@ -36,11 +36,11 @@ process (jack_nframes_t nframes, void *arg) out = jack_port_get_buffer (output_port, nframes); memcpy (out, in, sizeof (jack_default_audio_sample_t) * nframes); - + for (i = 0; i < loopsize; ++i) { fooey (nframes); } - + last_load = jack_cpu_load (client); if ((at_loop += nframes) >= at_loop_size) { @@ -59,21 +59,21 @@ process (jack_nframes_t nframes, void *arg) printf ("loopsize = %d\n", loopsize); } - if (xrun_occured) { + if (xrun_occurred) { if (consecutive_xruns == 0) { first_xrun = last_load; } consecutive_xruns++; } - xrun_occured = 0; + xrun_occurred = 0; if (consecutive_xruns >= 10) { fprintf (stderr, "Stopping with load = %f (first xrun at %f)\n", last_load, first_xrun); exit (0); } - return 0; + return 0; } /** @@ -90,8 +90,8 @@ jack_shutdown (void *arg) int jack_xrun (void *arg) { - fprintf (stderr, "xrun occured with loop size = %d\n", loopsize); - xrun_occured = 1; + fprintf (stderr, "xrun occurred with loop size = %d\n", loopsize); + xrun_occurred = 1; return 0; } @@ -182,7 +182,7 @@ main (int argc, char *argv[]) } free (ports); - + ports = jack_get_ports (client, NULL, NULL, JackPortIsPhysical|JackPortIsInput); if (ports == NULL) {