From 7a0fafede3dcef2ff6a07ed228dc0bf3b528f5e0 Mon Sep 17 00:00:00 2001 From: torben Date: Wed, 19 May 2010 22:00:31 +0000 Subject: [PATCH] silence jack_info in jack_bufsize and jack_wait git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4017 0c269be4-1314-0410-8aa9-9f06e86f4224 --- tools/bufsize.c | 7 +++++++ tools/wait.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/tools/bufsize.c b/tools/bufsize.c index ebc0a30..c0980d6 100644 --- a/tools/bufsize.c +++ b/tools/bufsize.c @@ -72,12 +72,19 @@ void parse_arguments(int argc, char *argv[]) } } +void silent_function( const char *ignore ) +{ +} + int main(int argc, char *argv[]) { int rc; parse_arguments(argc, argv); + if (just_print_bufsize) + jack_set_info_function( silent_function ); + /* become a JACK client */ if ((client = jack_client_open(package, JackNullOption, NULL)) == 0) { fprintf(stderr, "JACK server not running?\n"); diff --git a/tools/wait.c b/tools/wait.c index 67e0b35..800c97f 100644 --- a/tools/wait.c +++ b/tools/wait.c @@ -36,6 +36,10 @@ show_usage (void) fprintf (stderr, "For more information see http://jackaudio.org/\n"); } +void silent_function( const char *ignore ) +{ +} + int main (int argc, char *argv[]) { @@ -107,6 +111,7 @@ main (int argc, char *argv[]) /* try to open server in a loop. breaking under certein conditions */ start_timestamp = time( NULL ); + jack_set_info_function( silent_function ); while(1) { client = jack_client_open ("wait", options, &status, server_name);