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 #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;  // Internal type for ports and refnum
00087 
00088 } // end of namespace
00089 
00090 #endif

Generated on Thu Feb 14 11:16:01 2008 for Jackdmp by  doxygen 1.5.1