jack2 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.

65 lines
1.8KB

  1. /*
  2. Copyright (C) 2004-2006 Grame
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. */
  15. #define PRINTDEBUG
  16. #define VERSION "0.58"
  17. #define FORK_SERVER 1
  18. #define BUFFER_SIZE_MAX 8192
  19. #define SAMPLE_RATE 44100
  20. #define JACK_PORT_NAME_SIZE 256
  21. #define JACK_PORT_TYPE_SIZE 32
  22. #define JACK_CLIENT_NAME_SIZE 64
  23. #define PORT_NUM 512
  24. #define PORT_NUM_FOR_CLIENT 256
  25. #define CONNECTION_NUM 256
  26. #define CLIENT_NUM 64
  27. #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
  28. #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
  29. #define LOOPBACK_DRIVER_REFNUM 2 // Loopback driver is initialized third, it will get the refnum 2
  30. #define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1 // Real clients start at LOOPBACK_DRIVER_REFNUM + 1
  31. #define SOCKET_TIME_OUT 5
  32. #ifdef WIN32
  33. #define jack_server_dir "server"
  34. #define jack_client_dir "client"
  35. #else
  36. #define jack_server_dir "/dev/shm"
  37. #define jack_client_dir "/dev/shm"
  38. #endif
  39. /*
  40. #define jack_server_dir "/mnt/ramfs"
  41. #define jack_client_dir "/mnt/ramfs"
  42. */
  43. #define jack_server_entry "jackdmp_entry"
  44. #define jack_client_entry "jack_client"
  45. #define ALL_CLIENTS -1 // for notification