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