Browse Source

Import simple_session_client.c Windows fix from jack2

pull/1/head
falkTX 11 years ago
parent
commit
49e066743d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      simple_session_client.c

+ 6
- 1
simple_session_client.c View File

@@ -10,8 +10,10 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <inttypes.h>


#include <jack/jack.h> #include <jack/jack.h>
#include <jack/types.h>
#include <jack/session.h> #include <jack/session.h>


jack_port_t *input_port; jack_port_t *input_port;
@@ -193,8 +195,11 @@ main (int argc, char *argv[])
/* keep running until until we get a quit event */ /* keep running until until we get a quit event */


while (!simple_quit) while (!simple_quit)
#ifdef WIN32
Sleep(1*1000);
#else
sleep(1); sleep(1);
#endif


jack_client_close (client); jack_client_close (client);
exit (0); exit (0);


Loading…
Cancel
Save