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 #include "types.h"
00024
00025 namespace Jack
00026 {
00027
00028 #define VERSION "0.70"
00029
00030 #define FORK_SERVER 1
00031
00032 #define BUFFER_SIZE_MAX 8192
00033
00034 #define JACK_PORT_NAME_SIZE 256
00035 #define JACK_PORT_TYPE_SIZE 32
00036
00037 #define JACK_CLIENT_NAME_SIZE 64
00038
00039 #define FIRST_AVAILABLE_PORT 1
00040 #define PORT_NUM 512
00041 #define PORT_NUM_FOR_CLIENT 256
00042
00043 #define CONNECTION_NUM 256
00044
00045 #define CLIENT_NUM 64
00046
00047 #define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
00048 #define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
00049 #define LOOPBACK_DRIVER_REFNUM 2 // Loopback driver is initialized third, it will get the refnum 2
00050 #define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1 // Real clients start at LOOPBACK_DRIVER_REFNUM + 1
00051
00052 #define SOCKET_TIME_OUT 5
00053
00054 #ifdef WIN32
00055 #define jack_server_dir "server"
00056 #define jack_client_dir "client"
00057 #define ADDON_DIR "jackmp"
00058 #elif __APPLE__
00059 #define jack_server_dir "/tmp"
00060 #define jack_client_dir "/tmp"
00061 #define JACK_DEFAULT_DRIVER "coreaudio"
00062 #else
00063 #define jack_server_dir "/dev/shm"
00064 #define jack_client_dir "/dev/shm"
00065 #define JACK_DEFAULT_DRIVER "alsa"
00066 #endif
00067
00068 #define jack_server_entry "jackdmp_entry"
00069 #define jack_client_entry "jack_client"
00070
00071 #define ALL_CLIENTS -1 // for notification
00072
00073 #if defined(__ppc64__) || defined(__x86_64__)
00074 #define JACK_PROTOCOL_VERSION 4
00075 #else
00076 #define JACK_PROTOCOL_VERSION 3
00077 #endif
00078
00079 #define DRIVER_OPEN_TIMEOUT 5 // in sec
00080
00081 #define NO_PORT 0xFFFE
00082
00083 #define EMPTY 0xFFFD
00084 #define FREE 0xFFFC
00085
00086 typedef uint16_t jack_int_t;
00087
00088 }
00089
00090 #endif