20 #ifndef __JackConstants__
21 #define __JackConstants__
27 #define VERSION "1.9.9.5"
29 #define BUFFER_SIZE_MAX 8192
31 #define JACK_PORT_NAME_SIZE 256
32 #define JACK_PORT_TYPE_SIZE 32
34 #define JACK_SERVER_CONTROL_NAME_SIZE 64
35 #define JACK_CLIENT_NAME_SIZE 64
36 #define JACK_MESSAGE_SIZE 256
37 #define JACK_UUID_SIZE 32
38 #define JACK_SESSION_COMMAND_SIZE 256
40 #define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE
46 #define PORT_NUM_MAX 4096 // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
48 #define DRIVER_PORT_NUM 256
50 #ifndef PORT_NUM_FOR_CLIENT
51 #define PORT_NUM_FOR_CLIENT 768
54 #define FIRST_AVAILABLE_PORT 1
56 #define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
62 #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
63 #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
65 #define JACK_DEFAULT_SERVER_NAME "default"
67 #define jack_server_entry "jackdmp_entry"
68 #define jack_client_entry "jack_client"
70 #define ALL_CLIENTS -1 // for notification
72 #define JACK_PROTOCOL_VERSION 8
74 #define SOCKET_TIME_OUT 2 // in sec
75 #define DRIVER_OPEN_TIMEOUT 5 // in sec
76 #define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
77 #define DRIVER_TIMEOUT_FACTOR 10
80 #define NO_PORT 0xFFFE