JackConstants.h

00001 /*
00002  Copyright (C) 2004-2006 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 #define PRINTDEBUG
00021 
00022 #define VERSION "0.67"
00023 
00024 #define FORK_SERVER 1
00025 
00026 #define BUFFER_SIZE_MAX 8192
00027 
00028 #define JACK_PORT_NAME_SIZE 256
00029 #define JACK_PORT_TYPE_SIZE 32
00030 
00031 #define JACK_CLIENT_NAME_SIZE 64
00032 
00033 #define FIRST_AVAILABLE_PORT 1
00034 #define PORT_NUM 512
00035 #define PORT_NUM_FOR_CLIENT 256
00036 
00037 #define CONNECTION_NUM 256
00038 
00039 #define CLIENT_NUM 64
00040 
00041 #define AUDIO_DRIVER_REFNUM   0                                         // Audio driver is initialized first, it will get the refnum 0
00042 #define FREEWHEEL_DRIVER_REFNUM   1                                     // Freewheel driver is initialized second, it will get the refnum 1
00043 #define LOOPBACK_DRIVER_REFNUM   2                                      // Loopback driver is initialized third, it will get the refnum 2
00044 #define REAL_REFNUM LOOPBACK_DRIVER_REFNUM + 1          // Real clients start at LOOPBACK_DRIVER_REFNUM + 1
00045 
00046 #define SOCKET_TIME_OUT 5
00047 
00048 #ifdef WIN32
00049         #define jack_server_dir "server"
00050         #define jack_client_dir "client"
00051 #elif __APPLE__
00052         #define jack_server_dir "/tmp"
00053         #define jack_client_dir "/tmp"
00054         #define JACK_LOCATION  "/usr/local/bin"
00055         #define JACK_DEFAULT_DRIVER "coreaudio"
00056 #else
00057         #define jack_server_dir "/dev/shm"
00058         #define jack_client_dir "/dev/shm"
00059         #define JACK_LOCATION  "/usr/local/bin"
00060         #define JACK_DEFAULT_DRIVER "alsa"
00061 #endif
00062 
00063 #define jack_server_entry "jackdmp_entry"
00064 #define jack_client_entry "jack_client"
00065 
00066 #define ALL_CLIENTS -1 // for notification
00067 
00068 #define JACK_PROTOCOL_VERSION 1
00069 
00070 #define DRIVER_OPEN_TIMEOUT 5   // in sec

Generated on Mon Oct 15 17:11:13 2007 for Jackdmp by  doxygen 1.5.1