00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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.8"
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_CONTROL_NAME_SIZE 64
00035 #define JACK_CLIENT_NAME_SIZE 64
00036 #define JACK_MESSAGE_SIZE 256
00037 #define JACK_UUID_SIZE 32
00038 #define JACK_SESSION_COMMAND_SIZE 256
00039
00040 #define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE
00041
00042 #ifndef PORT_NUM
00043 #define PORT_NUM 2048
00044 #endif
00045
00046 #define PORT_NUM_MAX 4096 // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
00047
00048 #define DRIVER_PORT_NUM 256
00049
00050 #ifndef PORT_NUM_FOR_CLIENT
00051 #define PORT_NUM_FOR_CLIENT 768
00052 #endif
00053
00054 #define FIRST_AVAILABLE_PORT 1
00055
00056 #define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
00057
00058 #ifndef CLIENT_NUM
00059 #define CLIENT_NUM 64
00060 #endif
00061
00062 #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
00063 #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
00064
00065 #define JACK_DEFAULT_SERVER_NAME "default"
00066
00067 #define jack_server_entry "jackdmp_entry"
00068 #define jack_client_entry "jack_client"
00069
00070 #define ALL_CLIENTS -1 // for notification
00071
00072 #define JACK_PROTOCOL_VERSION 8
00073
00074 #define SOCKET_TIME_OUT 5 // in sec
00075 #define DRIVER_OPEN_TIMEOUT 5 // in sec
00076 #define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
00077 #define DRIVER_TIMEOUT_FACTOR 10
00078
00079
00080 #define NO_PORT 0xFFFE
00081
00082 #define EMPTY 0xFFFD
00083 #define FREE 0xFFFC
00084
00085 #endif