summaryrefslogtreecommitdiff
path: root/example-clients/simple_client.c
diff options
context:
space:
mode:
authorsletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2008-06-02 10:19:39 +0000
committersletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2008-06-02 10:19:39 +0000
commit1cb8d31cbb60b7a1a0d2e6d111c1cd85e5dd73ab (patch)
tree2e6e6a31ae7db199ec9e03f6319da0bd81d5bf47 /example-clients/simple_client.c
parent546d52495d88329907ec77cf8d06001a2d234a76 (diff)
downloadjack2-1cb8d31cbb60b7a1a0d2e6d111c1cd85e5dd73ab.tar.gz
Cleanup and correct wscript for example-clients.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2412 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'example-clients/simple_client.c')
-rw-r--r--example-clients/simple_client.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/example-clients/simple_client.c b/example-clients/simple_client.c
index e68aefea..35a17584 100644
--- a/example-clients/simple_client.c
+++ b/example-clients/simple_client.c
@@ -10,6 +10,9 @@
#include <string.h>
#include <math.h>
#include <signal.h>
+#ifndef WIN32
+#include <unistd.h>
+#endif
#include <jack/jack.h>
jack_port_t *input_port;
@@ -36,13 +39,6 @@ static void signal_handler(int sig)
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 */
volatile enum {
Init,
@@ -175,11 +171,6 @@ main (int argc, char *argv[])
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
* process() callback will start running now. */