Commit b4428906 authored by sletz's avatar sletz
Browse files

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1204 0c269be4-1314-0410-8aa9-9f06e86f4224
parent b5d81fdf
......@@ -31,8 +31,6 @@
#include <jack/jack.h>
#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;
}
// --------------------------------------------------------------------------------
......@@ -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);
......
......@@ -9,7 +9,6 @@
jack_client_t *client;
void
showtime ()
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment