91 lines
2.6 KiB
C
91 lines
2.6 KiB
C
/*
|
|
Copyright (C) 2004-2008 Grame
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
#ifndef __JackConstants__
|
|
#define __JackConstants__
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#define BUFFER_SIZE_MAX 8192
|
|
|
|
#define JACK_PORT_NAME_SIZE 256
|
|
#define JACK_PORT_TYPE_SIZE 32
|
|
|
|
#define JACK_SERVER_NAME_SIZE 256
|
|
#define JACK_CLIENT_NAME_SIZE 64
|
|
#define JACK_MESSAGE_SIZE 256
|
|
#define JACK_UUID_SIZE 36 // to match jack1 and uuid.h
|
|
#define JACK_UUID_STRING_SIZE (JACK_UUID_SIZE+1) /* includes trailing null */
|
|
#define JACK_UUID_EMPTY_INITIALIZER 0
|
|
#define JACK_SESSION_COMMAND_SIZE 256
|
|
|
|
#define SYNC_MAX_NAME_SIZE 256
|
|
|
|
#define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE // full name like "client_name:short_port_name"
|
|
|
|
#ifndef PORT_NUM
|
|
#define PORT_NUM 2048
|
|
#endif
|
|
|
|
#ifndef PORT_NUM_MAX
|
|
#define PORT_NUM_MAX 4096 // The "max" value for ports used in connection manager, although port number in graph manager is dynamic
|
|
#endif
|
|
|
|
#define DRIVER_PORT_NUM 256
|
|
|
|
#ifndef PORT_NUM_FOR_CLIENT
|
|
#define PORT_NUM_FOR_CLIENT 768
|
|
#endif
|
|
|
|
#define FIRST_AVAILABLE_PORT 1
|
|
|
|
#define CONNECTION_NUM_FOR_PORT PORT_NUM_FOR_CLIENT
|
|
|
|
#ifndef CLIENT_NUM
|
|
#define CLIENT_NUM 64
|
|
#endif
|
|
|
|
#define AUDIO_DRIVER_REFNUM 0 // Audio driver is initialized first, it will get the refnum 0
|
|
#define FREEWHEEL_DRIVER_REFNUM 1 // Freewheel driver is initialized second, it will get the refnum 1
|
|
|
|
#define JACK_DEFAULT_SERVER_NAME "default"
|
|
|
|
#define ALL_CLIENTS -1 // for notification
|
|
|
|
#define JACK_PROTOCOL_VERSION 9
|
|
|
|
#define SOCKET_TIME_OUT 2 // in sec
|
|
#define DRIVER_OPEN_TIMEOUT 5 // in sec
|
|
#define FREEWHEEL_DRIVER_TIMEOUT 10 // in sec
|
|
#define DRIVER_TIMEOUT_FACTOR 10
|
|
|
|
#define JACK_SERVER_FAILURE "JACK server has been closed"
|
|
|
|
#define NO_PORT 0xFFFE
|
|
|
|
#define EMPTY 0xFFFD
|
|
#define FREE 0xFFFC
|
|
|
|
#define JACK_DEFAULT_SELF_CONNECT_MODE 'e' /* Ignore self connect requests to
|
|
external ports only */
|
|
|
|
#endif
|