Browse Source

Compilation on WIN32

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1281 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.59
sletz 19 years ago
parent
commit
c0a10721a2
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      example-clients/lsp.c

+ 6
- 5
example-clients/lsp.c View File

@@ -26,7 +26,7 @@ show_usage (void)
fprintf (stderr, "Display options:\n"); fprintf (stderr, "Display options:\n");
fprintf (stderr, " -c, --connections List connections to/from each port\n"); fprintf (stderr, " -c, --connections List connections to/from each port\n");
fprintf (stderr, " -l, --latency Display per-port latency in frames at each port\n"); fprintf (stderr, " -l, --latency Display per-port latency in frames at each port\n");
fprintf (stderr, " -l, --latency Display total latency in frames at each port\n");
fprintf (stderr, " -L, --latency Display total latency in frames at each port\n");
fprintf (stderr, " -p, --properties Display port properties. Output may include:\n" fprintf (stderr, " -p, --properties Display port properties. Output may include:\n"
" input|output, can-monitor, physical, terminal\n\n"); " input|output, can-monitor, physical, terminal\n\n");
fprintf (stderr, " -t, --type Display port type\n"); fprintf (stderr, " -t, --type Display port type\n");
@@ -48,7 +48,8 @@ main (int argc, char *argv[])
int show_properties = 0; int show_properties = 0;
int show_type = 0; int show_type = 0;
int c; int c;
int option_index;
int option_index;
jack_port_t *port;


struct option long_options[] = { struct option long_options[] = {
{ "connections", 0, 0, 'c' }, { "connections", 0, 0, 'c' },
@@ -121,7 +122,7 @@ main (int argc, char *argv[])
for (i = 0; ports[i]; ++i) { for (i = 0; ports[i]; ++i) {
printf ("%s\n", ports[i]); printf ("%s\n", ports[i]);


jack_port_t *port = jack_port_by_name (client, ports[i]);
port = jack_port_by_name (client, ports[i]);


if (show_con) { if (show_con) {
if ((connections = jack_port_get_all_connections (client, jack_port_by_name(client, ports[i]))) != 0) { if ((connections = jack_port_get_all_connections (client, jack_port_by_name(client, ports[i]))) != 0) {
@@ -133,13 +134,13 @@ main (int argc, char *argv[])
} }
if (show_port_latency) { if (show_port_latency) {
if (port) { if (port) {
printf (" port latency = %" PRIu32 " frames\n",
printf (" port latency = %ld 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 = %" PRIu32 " frames\n",
printf (" total latency = %ld frames\n",
jack_port_get_total_latency (client, port)); jack_port_get_total_latency (client, port));
} }
} }


Loading…
Cancel
Save