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.

102 lines
2.6KB

  1. /*
  2. Copyright (C) 2004-2008 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. #ifndef __JackConstants__
  16. #define __JackConstants__
  17. #ifdef HAVE_CONFIG_H
  18. #include "config.h"
  19. #endif
  20. #define VERSION "1.9.2"
  21. #define BUFFER_SIZE_MAX 8192
  22. #define JACK_PORT_NAME_SIZE 256
  23. #define JACK_PORT_TYPE_SIZE 32
  24. #define JACK_CLIENT_NAME_SIZE 64
  25. #ifndef PORT_NUM
  26. #define PORT_NUM 512
  27. #endif
  28. #define DRIVER_PORT_NUM 256
  29. #define PORT_NUM_FOR_CLIENT 256
  30. #define FIRST_AVAILABLE_PORT 1
  31. #define CONNECTION_NUM_FOR_PORT 256
  32. #ifndef CLIENT_NUM
  33. #define CLIENT_NUM 64
  34. #endif
  35. #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
  36. #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
  37. #define LOOPBACK_DRIVER_REFNUM 2 // Loopback driver is initialized third, it will get the refnum 2
  38. #define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1 // Real clients start at LOOPBACK_DRIVER_REFNUM + 1
  39. #define JACK_DEFAULT_SERVER_NAME "default"
  40. #ifdef WIN32
  41. #define jack_server_dir "server"
  42. #define jack_client_dir "client"
  43. #define ADDON_DIR "jackmp"
  44. #endif
  45. #ifdef __APPLE__
  46. #define jack_server_dir "/tmp"
  47. #define jack_client_dir "/tmp"
  48. #define JACK_DEFAULT_DRIVER "coreaudio"
  49. #endif
  50. #ifdef __linux__
  51. #define jack_server_dir "/dev/shm"
  52. #define jack_client_dir "/dev/shm"
  53. #define JACK_DEFAULT_DRIVER "alsa"
  54. #endif
  55. #if defined(__sun__) || defined(sun)
  56. #define jack_server_dir "/tmp"
  57. #define jack_client_dir "/tmp"
  58. #define JACK_DEFAULT_DRIVER "oss"
  59. #endif
  60. #define jack_server_entry "jackdmp_entry"
  61. #define jack_client_entry "jack_client"
  62. #define ALL_CLIENTS -1 // for notification
  63. #if defined(__ppc64__) || defined(__x86_64__)
  64. #define JACK_PROTOCOL_VERSION 6
  65. #else
  66. #define JACK_PROTOCOL_VERSION 5
  67. #endif
  68. #define SOCKET_TIME_OUT 5 // in sec
  69. #define DRIVER_OPEN_TIMEOUT 5 // in sec
  70. #define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
  71. #define NO_PORT 0xFFFE
  72. #define EMPTY 0xFFFD
  73. #define FREE 0xFFFC
  74. #endif