00001 /* 00002 Copyright (C) 2001 Paul Davis 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Lesser General Public License as published by 00006 the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. 00013 00014 You should have received a copy of the GNU Lesser General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 00018 $Id: types.h,v 1.8 2002/05/12 17:23:03 wingo Exp $ 00019 */ 00020 00021 #ifndef __jack_types_h__ 00022 #define __jack_types_h__ 00023 00024 #include <limits.h> 00025 00026 00027 typedef unsigned long jack_nframes_t; 00028 00029 #define JACK_MAX_FRAMES ULONG_MAX; 00030 00031 00035 typedef struct _jack_port jack_port_t; 00036 00040 typedef struct _jack_client jack_client_t; 00041 00046 typedef long jack_port_id_t; 00047 00048 typedef int (*JackProcessCallback)(jack_nframes_t, void *); 00049 typedef int (*JackGraphOrderCallback)(void *); 00050 typedef int (*JackXRunCallback)(void *); 00051 typedef int (*JackBufferSizeCallback)(jack_nframes_t, void *); 00052 typedef int (*JackSampleRateCallback)(jack_nframes_t, void *); 00053 typedef void (*JackPortRegistrationCallback)(jack_port_id_t,int,void*); 00054 00058 #define JACK_DEFAULT_AUDIO_TYPE "32 bit float mono audio" 00059 00065 typedef float jack_default_audio_sample_t; 00066 00067 00074 enum JackPortFlags { 00075 00080 JackPortIsInput = 0x1, 00081 00086 JackPortIsOutput = 0x2, 00087 00092 JackPortIsPhysical = 0x4, 00093 00107 JackPortCanMonitor = 0x8, 00108 00123 JackPortIsTerminal = 0x10 00124 }; 00125 00126 00127 #endif /* __jack_types_h__ */
1.2.18