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.

JackConstants.h 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 Lesser General Public License as published by
  5. the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. #ifndef __JackConstants__
  16. #define __JackConstants__
  17. #ifdef HAVE_CONFIG_H
  18. #include "config.h"
  19. #endif
  20. #define VERSION "1.9.22"
  21. #define BUFFER_SIZE_MAX 8192
  22. #define JACK_PORT_NAME_SIZE 256
  23. #define JACK_PORT_TYPE_SIZE 32
  24. #define JACK_SERVER_NAME_SIZE 256
  25. #define JACK_CLIENT_NAME_SIZE 64
  26. #define JACK_MESSAGE_SIZE 256
  27. #define JACK_UUID_SIZE 36 // to match jack1 and uuid.h
  28. #define JACK_UUID_STRING_SIZE (JACK_UUID_SIZE+1) /* includes trailing null */
  29. #define JACK_UUID_EMPTY_INITIALIZER 0
  30. #define JACK_SESSION_COMMAND_SIZE 256
  31. #define SYNC_MAX_NAME_SIZE 256
  32. #define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE // full name like "client_name:short_port_name"
  33. #ifndef PORT_NUM
  34. #define PORT_NUM 2048
  35. #endif
  36. #ifndef PORT_NUM_MAX
  37. #define PORT_NUM_MAX 4096 // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
  38. #endif
  39. #define DRIVER_PORT_NUM 256
  40. #ifndef PORT_NUM_FOR_CLIENT
  41. #define PORT_NUM_FOR_CLIENT 768
  42. #endif
  43. #define FIRST_AVAILABLE_PORT 1
  44. #define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
  45. #ifndef CLIENT_NUM
  46. #define CLIENT_NUM 64
  47. #endif
  48. #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
  49. #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
  50. #define JACK_DEFAULT_SERVER_NAME "default"
  51. #define ALL_CLIENTS -1 // for notification
  52. #define JACK_PROTOCOL_VERSION 9
  53. #define SOCKET_TIME_OUT 2 // in sec
  54. #define DRIVER_OPEN_TIMEOUT 5 // in sec
  55. #define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
  56. #define DRIVER_TIMEOUT_FACTOR 10
  57. #define JACK_SERVER_FAILURE "JACK server has been closed"
  58. #define NO_PORT 0xFFFE
  59. #define EMPTY 0xFFFD
  60. #define FREE 0xFFFC
  61. #define JACK_DEFAULT_SELF_CONNECT_MODE ' ' /* allow all requests */
  62. #endif