From b442890653d90823f82d34aba4e047d04858e4e7 Mon Sep 17 00:00:00 2001 From: sletz Date: Sun, 3 Sep 2006 11:23:55 +0000 Subject: [PATCH] Cleanup git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1204 0c269be4-1314-0410-8aa9-9f06e86f4224 --- example-clients/jdelay.cpp | 12 ------------ example-clients/metro.c | 25 +++++++++++-------------- example-clients/showtime.c | 1 - 3 files changed, 11 insertions(+), 27 deletions(-) diff --git a/example-clients/jdelay.cpp b/example-clients/jdelay.cpp index 1fdb6273..3d23404f 100644 --- a/example-clients/jdelay.cpp +++ b/example-clients/jdelay.cpp @@ -31,8 +31,6 @@ #include #endif - - class Freq { public: @@ -94,7 +92,6 @@ MTDM::MTDM (void) : _cnt (0), _inv (0) } } - int MTDM::process (size_t len, float *ip, float *op) { int i; @@ -131,7 +128,6 @@ int MTDM::process (size_t len, float *ip, float *op) return 0; } - int MTDM::resolve (void) { int i, k, m; @@ -164,22 +160,17 @@ int MTDM::resolve (void) return 0; } - // -------------------------------------------------------------------------------- - - static MTDM mtdm; static jack_client_t *jack_handle; static jack_port_t *jack_capt; static jack_port_t *jack_play; - static void jack_shutdown (void *arg) { exit (1); } - static int jack_callback (jack_nframes_t nframes, void *arg) { float *ip, *op; @@ -189,7 +180,6 @@ static int jack_callback (jack_nframes_t nframes, void *arg) return mtdm.process (nframes, ip, op);; } - int main (int ac, char *av []) { int i, k; @@ -256,5 +246,3 @@ int main (int ac, char *av []) return 0; } - -// -------------------------------------------------------------------------------- diff --git a/example-clients/metro.c b/example-clients/metro.c index ec9f8833..0668a742 100644 --- a/example-clients/metro.c +++ b/example-clients/metro.c @@ -46,19 +46,18 @@ jack_transport_state_t transport_state; void usage () - { fprintf (stderr, "\n" -"usage: jack_metro \n" -" [ --frequency OR -f frequency (in Hz) ]\n" -" [ --amplitude OR -A maximum amplitude (between 0 and 1) ]\n" -" [ --duration OR -D duration (in ms) ]\n" -" [ --attack OR -a attack (in percent of duration) ]\n" -" [ --decay OR -d decay (in percent of duration) ]\n" -" [ --name OR -n jack name for metronome client ]\n" -" [ --transport OR -t transport aware ]\n" -" --bpm OR -b beats per minute\n" -); + "usage: jack_metro \n" + " [ --frequency OR -f frequency (in Hz) ]\n" + " [ --amplitude OR -A maximum amplitude (between 0 and 1) ]\n" + " [ --duration OR -D duration (in ms) ]\n" + " [ --attack OR -a attack (in percent of duration) ]\n" + " [ --decay OR -d decay (in percent of duration) ]\n" + " [ --name OR -n jack name for metronome client ]\n" + " [ --transport OR -t transport aware ]\n" + " --bpm OR -b beats per minute\n" + ); } void @@ -115,7 +114,6 @@ sample_rate_change () { int main (int argc, char *argv[]) { - sample_t scale; int i, attack_length, decay_length; double *amp; @@ -266,7 +264,6 @@ main (int argc, char *argv[]) fprintf (stderr, "cannot activate client"); return 1; } - #ifdef WIN32 // Connection can only be done after activation @@ -280,7 +277,7 @@ main (int argc, char *argv[]) #endif while ((getchar() != 'q')) { - //while (1) { + //while (1) { //sleep(1); //printf("jack_frame_time %ld\n", (long)jack_frame_time(client)); //usleep(2000); diff --git a/example-clients/showtime.c b/example-clients/showtime.c index c88d241f..e3d55b0b 100644 --- a/example-clients/showtime.c +++ b/example-clients/showtime.c @@ -9,7 +9,6 @@ jack_client_t *client; - void showtime () {