Version 0.62
[jack2.git] / common / JackConstants.h
blobd87112f7323f693224cd2fb8fb621436d408e88d
1 /*
2 Copyright (C) 2004-2006 Grame
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.
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.
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.
20 #define PRINTDEBUG
22 #define VERSION "0.62"
24 #define FORK_SERVER 1
26 #define BUFFER_SIZE_MAX 8192
28 #define JACK_PORT_NAME_SIZE 256
29 #define JACK_PORT_TYPE_SIZE 32
31 #define JACK_CLIENT_NAME_SIZE 64
33 #define FIRST_AVAILABLE_PORT 1
34 #define PORT_NUM 512
35 #define PORT_NUM_FOR_CLIENT 256
37 #define CONNECTION_NUM 256
39 #define CLIENT_NUM 64
41 #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
42 #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
43 #define LOOPBACK_DRIVER_REFNUM 2 // Loopback driver is initialized third, it will get the refnum 2
44 #define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1 // Real clients start at LOOPBACK_DRIVER_REFNUM + 1
46 #define SOCKET_TIME_OUT 5
48 #ifdef WIN32
49 #define jack_server_dir "server"
50 #define jack_client_dir "client"
51 #elif __APPLE__
52 #define jack_server_dir "/tmp"
53 #define jack_client_dir "/tmp"
54 #else
55 #define jack_server_dir "/dev/shm"
56 #define jack_client_dir "/dev/shm"
57 #endif
59 #define jack_server_entry "jackdmp_entry"
60 #define jack_client_entry "jack_client"
62 #define ALL_CLIENTS -1 // for notification