git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2412 0c269be4-1314-0410-8aa9-9f06e86f4224tags/1.90
| @@ -20,6 +20,10 @@ Fernando Lopez-Lezcano | |||||
| Jackdmp changes log | Jackdmp changes log | ||||
| --------------------------- | --------------------------- | ||||
| 2008-06-02 Stephane Letz <letz@grame.fr> | |||||
| * Cleanup and correct wscript for example-clients. | |||||
| 2008-05-31 Stephane Letz <letz@grame.fr> | 2008-05-31 Stephane Letz <letz@grame.fr> | ||||
| * Add missing include for proper compilation when jack headers are not installed. | * Add missing include for proper compilation when jack headers are not installed. | ||||
| @@ -178,13 +178,13 @@ main (int argc, char *argv[]) | |||||
| } | } | ||||
| if (show_port_latency) { | if (show_port_latency) { | ||||
| if (port) { | if (port) { | ||||
| printf (" port latency = %ld frames\n", | |||||
| printf (" port latency = %d frames\n", | |||||
| jack_port_get_latency (port)); | jack_port_get_latency (port)); | ||||
| } | } | ||||
| } | } | ||||
| if (show_total_latency) { | if (show_total_latency) { | ||||
| if (port) { | if (port) { | ||||
| printf (" total latency = %ld frames\n", | |||||
| printf (" total latency = %d frames\n", | |||||
| jack_port_get_total_latency (client, port)); | jack_port_get_total_latency (client, port)); | ||||
| } | } | ||||
| } | } | ||||
| @@ -112,12 +112,6 @@ process (jack_nframes_t nframes, void *arg) | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| static int | |||||
| sample_rate_change () { | |||||
| printf("Sample rate has changed! Exiting...\n"); | |||||
| exit(-1); | |||||
| } | |||||
| int | int | ||||
| main (int argc, char *argv[]) | main (int argc, char *argv[]) | ||||
| { | { | ||||
| @@ -10,6 +10,9 @@ | |||||
| #include <string.h> | #include <string.h> | ||||
| #include <math.h> | #include <math.h> | ||||
| #include <signal.h> | #include <signal.h> | ||||
| #ifndef WIN32 | |||||
| #include <unistd.h> | |||||
| #endif | |||||
| #include <jack/jack.h> | #include <jack/jack.h> | ||||
| jack_port_t *input_port; | jack_port_t *input_port; | ||||
| @@ -36,13 +39,6 @@ static void signal_handler(int sig) | |||||
| exit(0); | exit(0); | ||||
| } | } | ||||
| static int Jack_Graph_Order_Callback(void *arg) | |||||
| { | |||||
| static int reorder = 0; | |||||
| printf("Jack_Graph_Order_Callback count = %ld\n", reorder++); | |||||
| return 0; | |||||
| } | |||||
| /* a simple state machine for this client */ | /* a simple state machine for this client */ | ||||
| volatile enum { | volatile enum { | ||||
| Init, | Init, | ||||
| @@ -175,11 +171,6 @@ main (int argc, char *argv[]) | |||||
| exit (1); | exit (1); | ||||
| } | } | ||||
| if (jack_set_graph_order_callback(client, Jack_Graph_Order_Callback, 0) != 0) { | |||||
| printf("Error when calling Jack_Graph_Order_Callback() !\n"); | |||||
| } | |||||
| /* Tell the JACK server that we are ready to roll. Our | /* Tell the JACK server that we are ready to roll. Our | ||||
| * process() callback will start running now. */ | * process() callback will start running now. */ | ||||
| @@ -46,12 +46,12 @@ def configure(conf): | |||||
| e.define = 'HAVE_READLINE' | e.define = 'HAVE_READLINE' | ||||
| e.run() | e.run() | ||||
| if conf.is_defined('HAVE_NCURSES'): | |||||
| conf.env['LIB_NCURSES'] = ['ncurses'] | |||||
| if conf.is_defined('HAVE_READLINE'): | |||||
| conf.env['LIB_READLINE'] = ['readline'] | |||||
| conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = conf.is_defined('HAVE_READLINE') and conf.is_defined('HAVE_NCURSES') | conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = conf.is_defined('HAVE_READLINE') and conf.is_defined('HAVE_NCURSES') | ||||
| conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = conf.is_defined('HAVE_SNDFILE') | |||||
| conf.env['BUILD_EXAMPLE_CLIENT_REC'] = conf.is_defined('HAVE_SNDFILE') | |||||
| def build(bld): | def build(bld): | ||||
| for example_program, example_program_source in example_programs.items(): | for example_program, example_program_source in example_programs.items(): | ||||
| @@ -70,7 +70,7 @@ def build(bld): | |||||
| prog.uselib_local = 'clientlib' | prog.uselib_local = 'clientlib' | ||||
| prog.target = 'jack_transport' | prog.target = 'jack_transport' | ||||
| if bld.env()['BUILD_EXAMPLE_CLIENT_TRANSPORT'] == True: | |||||
| if bld.env()['BUILD_EXAMPLE_CLIENT_REC'] == True: | |||||
| prog = bld.create_obj('cc', 'program') | prog = bld.create_obj('cc', 'program') | ||||
| prog.includes = ['../common/jack'] | prog.includes = ['../common/jack'] | ||||
| prog.source = 'capture_client.c' | prog.source = 'capture_client.c' | ||||