Jack2 1.9.10

JackConstants.h

00001 /*
00002  Copyright (C) 2004-2008 Grame
00003 
00004  This program is free software; you can redistribute it and/or modify
00005  it under the terms of the GNU General Public License as published by
00006  the Free Software Foundation; either version 2 of the License, or
00007  (at your option) any later version.
00008 
00009  This program is distributed in the hope that it will be useful,
00010  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  GNU General Public License for more details.
00013 
00014  You should have received a copy of the GNU General Public License
00015  along with this program; if not, write to the Free Software
00016  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 
00018 */
00019 
00020 #ifndef __JackConstants__
00021 #define __JackConstants__
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #include "config.h"
00025 #endif
00026 
00027 #define VERSION "1.9.10"
00028 
00029 #define BUFFER_SIZE_MAX 8192
00030 
00031 #define JACK_PORT_NAME_SIZE 256
00032 #define JACK_PORT_TYPE_SIZE 32
00033 
00034 #define JACK_SERVER_NAME_SIZE 256
00035 #define JACK_CLIENT_NAME_SIZE 64
00036 #define JACK_MESSAGE_SIZE 256
00037 #define JACK_UUID_SIZE 36 // to match jack1 and uuid.h
00038 #define JACK_UUID_STRING_SIZE (JACK_UUID_SIZE+1) /* includes trailing null */
00039 #define JACK_SESSION_COMMAND_SIZE 256
00040 
00041 #define SYNC_MAX_NAME_SIZE 256
00042 
00043 #define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE   // full name like "client_name:short_port_name"
00044 
00045 #ifndef PORT_NUM
00046 #define PORT_NUM 2048
00047 #endif
00048 
00049 #ifndef PORT_NUM_MAX
00050 #define PORT_NUM_MAX 4096           // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
00051 #endif
00052 
00053 #define DRIVER_PORT_NUM 256
00054 
00055 #ifndef PORT_NUM_FOR_CLIENT
00056 #define PORT_NUM_FOR_CLIENT 768
00057 #endif
00058 
00059 #define FIRST_AVAILABLE_PORT 1
00060 
00061 #define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
00062 
00063 #ifndef CLIENT_NUM
00064 #define CLIENT_NUM 64
00065 #endif
00066 
00067 #define AUDIO_DRIVER_REFNUM   0                 // Audio driver is initialized first, it will get the refnum 0
00068 #define FREEWHEEL_DRIVER_REFNUM   1             // Freewheel driver is initialized second, it will get the refnum 1
00069 
00070 #define JACK_DEFAULT_SERVER_NAME "default"
00071 
00072 #define ALL_CLIENTS -1 // for notification
00073 
00074 #define JACK_PROTOCOL_VERSION 8
00075 
00076 #define SOCKET_TIME_OUT 2               // in sec
00077 #define DRIVER_OPEN_TIMEOUT 5           // in sec
00078 #define FREEWHEEL_DRIVER_TIMEOUT 10     // in sec
00079 #define DRIVER_TIMEOUT_FACTOR    10
00080 
00081 #define JACK_SERVER_FAILURE "JACK server has been closed"
00082 
00083 #define NO_PORT   0xFFFE
00084 
00085 #define EMPTY   0xFFFD
00086 #define FREE    0xFFFC
00087 
00088 #define JACK_DEFAULT_SELF_CONNECT_MODE ' ' /* allow all requests */
00089 
00090 #endif