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.5"
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_CLIENT_NAME_SIZE 64
00035 #define JACK_MESSAGE_SIZE 256
00036
00037 #ifndef PORT_NUM
00038 #define PORT_NUM 2048
00039 #endif
00040
00041 #define PORT_NUM_MAX 4096 // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
00042
00043 #define DRIVER_PORT_NUM 256
00044
00045 #ifndef PORT_NUM_FOR_CLIENT
00046 #define PORT_NUM_FOR_CLIENT 768
00047 #endif
00048
00049 #define FIRST_AVAILABLE_PORT 1
00050
00051 #define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
00052
00053 #ifndef CLIENT_NUM
00054 #define CLIENT_NUM 64
00055 #endif
00056
00057 #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
00058 #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
00059
00060 #define JACK_DEFAULT_SERVER_NAME "default"
00061
00062 #ifdef WIN32
00063 #define jack_server_dir "server"
00064 #define jack_client_dir "client"
00065 #define ADDON_DIR "jack"
00066 #endif
00067
00068 #ifdef __APPLE__
00069 #define jack_server_dir "/tmp"
00070 #define jack_client_dir "/tmp"
00071 #define JACK_DEFAULT_DRIVER "coreaudio"
00072 #endif
00073
00074 #ifdef __linux__
00075 #define jack_server_dir "/dev/shm"
00076 #define jack_client_dir "/dev/shm"
00077 #define JACK_DEFAULT_DRIVER "alsa"
00078 #endif
00079
00080 #if defined(__sun__) || defined(sun)
00081 #define jack_server_dir "/tmp"
00082 #define jack_client_dir "/tmp"
00083 #define JACK_DEFAULT_DRIVER "oss"
00084 #endif
00085
00086 #define jack_server_entry "jackdmp_entry"
00087 #define jack_client_entry "jack_client"
00088
00089 #define ALL_CLIENTS -1 // for notification
00090
00091 #define JACK_PROTOCOL_VERSION 7
00092
00093 #define SOCKET_TIME_OUT 5 // in sec
00094 #define DRIVER_OPEN_TIMEOUT 5 // in sec
00095 #define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
00096 #define DRIVER_TIMEOUT_FACTOR 10
00097
00098 #define NO_PORT 0xFFFE
00099
00100 #define EMPTY 0xFFFD
00101 #define FREE 0xFFFC
00102
00103 #endif