Browse Source

silence jack_info in jack_bufsize and jack_wait

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4017 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.120.1
torben 15 years ago
parent
commit
7a0fafede3
2 changed files with 12 additions and 0 deletions
  1. +7
    -0
      tools/bufsize.c
  2. +5
    -0
      tools/wait.c

+ 7
- 0
tools/bufsize.c View File

@@ -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");


+ 5
- 0
tools/wait.c View File

@@ -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);


Loading…
Cancel
Save