git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1204 0c269be4-1314-0410-8aa9-9f06e86f4224tags/0.58
@@ -31,8 +31,6 @@ | |||||
#include <jack/jack.h> | #include <jack/jack.h> | ||||
#endif | #endif | ||||
class Freq | class Freq | ||||
{ | { | ||||
public: | public: | ||||
@@ -94,7 +92,6 @@ MTDM::MTDM (void) : _cnt (0), _inv (0) | |||||
} | } | ||||
} | } | ||||
int MTDM::process (size_t len, float *ip, float *op) | int MTDM::process (size_t len, float *ip, float *op) | ||||
{ | { | ||||
int i; | int i; | ||||
@@ -131,7 +128,6 @@ int MTDM::process (size_t len, float *ip, float *op) | |||||
return 0; | return 0; | ||||
} | } | ||||
int MTDM::resolve (void) | int MTDM::resolve (void) | ||||
{ | { | ||||
int i, k, m; | int i, k, m; | ||||
@@ -164,22 +160,17 @@ int MTDM::resolve (void) | |||||
return 0; | return 0; | ||||
} | } | ||||
// -------------------------------------------------------------------------------- | // -------------------------------------------------------------------------------- | ||||
static MTDM mtdm; | static MTDM mtdm; | ||||
static jack_client_t *jack_handle; | static jack_client_t *jack_handle; | ||||
static jack_port_t *jack_capt; | static jack_port_t *jack_capt; | ||||
static jack_port_t *jack_play; | static jack_port_t *jack_play; | ||||
static void jack_shutdown (void *arg) | static void jack_shutdown (void *arg) | ||||
{ | { | ||||
exit (1); | exit (1); | ||||
} | } | ||||
static int jack_callback (jack_nframes_t nframes, void *arg) | static int jack_callback (jack_nframes_t nframes, void *arg) | ||||
{ | { | ||||
float *ip, *op; | float *ip, *op; | ||||
@@ -189,7 +180,6 @@ static int jack_callback (jack_nframes_t nframes, void *arg) | |||||
return mtdm.process (nframes, ip, op);; | return mtdm.process (nframes, ip, op);; | ||||
} | } | ||||
int main (int ac, char *av []) | int main (int ac, char *av []) | ||||
{ | { | ||||
int i, k; | int i, k; | ||||
@@ -256,5 +246,3 @@ int main (int ac, char *av []) | |||||
return 0; | return 0; | ||||
} | } | ||||
// -------------------------------------------------------------------------------- |
@@ -46,19 +46,18 @@ jack_transport_state_t transport_state; | |||||
void | void | ||||
usage () | usage () | ||||
{ | { | ||||
fprintf (stderr, "\n" | 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 | void | ||||
@@ -115,7 +114,6 @@ sample_rate_change () { | |||||
int | int | ||||
main (int argc, char *argv[]) | main (int argc, char *argv[]) | ||||
{ | { | ||||
sample_t scale; | sample_t scale; | ||||
int i, attack_length, decay_length; | int i, attack_length, decay_length; | ||||
double *amp; | double *amp; | ||||
@@ -266,7 +264,6 @@ main (int argc, char *argv[]) | |||||
fprintf (stderr, "cannot activate client"); | fprintf (stderr, "cannot activate client"); | ||||
return 1; | return 1; | ||||
} | } | ||||
#ifdef WIN32 | #ifdef WIN32 | ||||
// Connection can only be done after activation | // Connection can only be done after activation | ||||
@@ -280,7 +277,7 @@ main (int argc, char *argv[]) | |||||
#endif | #endif | ||||
while ((getchar() != 'q')) { | while ((getchar() != 'q')) { | ||||
//while (1) { | |||||
//while (1) { | |||||
//sleep(1); | //sleep(1); | ||||
//printf("jack_frame_time %ld\n", (long)jack_frame_time(client)); | //printf("jack_frame_time %ld\n", (long)jack_frame_time(client)); | ||||
//usleep(2000); | //usleep(2000); | ||||
@@ -9,7 +9,6 @@ | |||||
jack_client_t *client; | jack_client_t *client; | ||||
void | void | ||||
showtime () | showtime () | ||||
{ | { | ||||