Browse Source

Merge pull request #2 from falkTX/master

Import latent_client.c Windows fix from jack2 (tweaked)
pull/3/merge
pauldavisthefirst 11 years ago
parent
commit
1dcb7744fd
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      latent_client.c

+ 8
- 1
latent_client.c View File

@@ -1,4 +1,4 @@
/** @file simple_client.c
/** @file latent_client.c
* *
* @brief This simple client demonstrates the most basic features of JACK * @brief This simple client demonstrates the most basic features of JACK
* as they would be used by many applications. * as they would be used by many applications.
@@ -9,6 +9,7 @@
#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>


@@ -70,6 +71,7 @@ latency_cb (jack_latency_callback_mode_t mode, void *arg)
void void
jack_shutdown (void *arg) jack_shutdown (void *arg)
{ {
fprintf(stderr, "JACK shut down, exiting ...\n");
exit (1); exit (1);
} }


@@ -196,7 +198,11 @@ main (int argc, char *argv[])


/* keep running until stopped by the user */ /* keep running until stopped by the user */


#ifdef WIN32
Sleep (-1);
#else
sleep (-1); sleep (-1);
#endif


/* this is never reached but if the program /* this is never reached but if the program
had some other way to exit besides being killed, had some other way to exit besides being killed,
@@ -206,3 +212,4 @@ main (int argc, char *argv[])
jack_client_close (client); jack_client_close (client);
exit (0); exit (0);
} }


Loading…
Cancel
Save