Jack2  1.9.9
JackConstants.h
1 /*
2  Copyright (C) 2004-2008 Grame
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18 */
19 
20 #ifndef __JackConstants__
21 #define __JackConstants__
22 
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26 
27 #define VERSION "1.9.9.5"
28 
29 #define BUFFER_SIZE_MAX 8192
30 
31 #define JACK_PORT_NAME_SIZE 256
32 #define JACK_PORT_TYPE_SIZE 32
33 
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
39 
40 #define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE
41 
42 #ifndef PORT_NUM
43 #define PORT_NUM 2048
44 #endif
45 
46 #define PORT_NUM_MAX 4096 // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
47 
48 #define DRIVER_PORT_NUM 256
49 
50 #ifndef PORT_NUM_FOR_CLIENT
51 #define PORT_NUM_FOR_CLIENT 768
52 #endif
53 
54 #define FIRST_AVAILABLE_PORT 1
55 
56 #define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
57 
58 #ifndef CLIENT_NUM
59 #define CLIENT_NUM 64
60 #endif
61 
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
64 
65 #define JACK_DEFAULT_SERVER_NAME "default"
66 
67 #define jack_server_entry "jackdmp_entry"
68 #define jack_client_entry "jack_client"
69 
70 #define ALL_CLIENTS -1 // for notification
71 
72 #define JACK_PROTOCOL_VERSION 8
73 
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
78 
79 
80 #define NO_PORT 0xFFFE
81 
82 #define EMPTY 0xFFFD
83 #define FREE 0xFFFC
84 
85 #endif