jack1 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
436B

  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <jack/jack.h>
  4. int
  5. main (int argc, char *argv[])
  6. {
  7. jack_client_t *client;
  8. if ((client = jack_client_new ("input monitoring")) == 0) {
  9. fprintf (stderr, "jack server not running?\n");
  10. return 1;
  11. }
  12. jack_port_request_monitor (client, "ALSA I/O:Input 1", TRUE);
  13. sleep (10);
  14. jack_port_request_monitor (client, "ALSA I/O:Input 1", FALSE);
  15. jack_client_close (client);
  16. exit (0);
  17. }