types.h

Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2001 Paul Davis 00003 Copyright (C) 2004 Jack O'Quin 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU Lesser General Public License as published by 00007 the Free Software Foundation; either version 2.1 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 $Id: types.h,v 1.30 2004/11/28 00:29:45 joq Exp $ 00020 */ 00021 00022 #ifndef __jack_types_h__ 00023 #define __jack_types_h__ 00024 00025 #include <inttypes.h> 00026 00027 typedef char shm_name_t[32]; 00028 typedef int32_t jack_shmsize_t; 00029 00033 typedef uint32_t jack_nframes_t; 00034 00038 #define JACK_MAX_FRAMES (4294967295U) /* This should be UINT32_MAX, but 00039 C++ has a problem with that. */ 00040 00045 typedef uint64_t jack_time_t; 00046 00051 #define JACK_LOAD_INIT_LIMIT 1024 00052 00058 typedef uint64_t jack_intclient_t; 00059 00064 typedef struct _jack_port jack_port_t; 00065 00070 typedef struct _jack_client jack_client_t; 00071 00076 typedef uint32_t jack_port_id_t; 00077 00090 typedef int (*JackProcessCallback)(jack_nframes_t nframes, void *arg); 00091 00104 typedef void (*JackThreadInitCallback)(void *arg); 00105 00114 typedef int (*JackGraphOrderCallback)(void *arg); 00115 00126 typedef int (*JackXRunCallback)(void *arg); 00127 00142 typedef int (*JackBufferSizeCallback)(jack_nframes_t nframes, void *arg); 00143 00153 typedef int (*JackSampleRateCallback)(jack_nframes_t nframes, void *arg); 00154 00161 typedef void (*JackPortRegistrationCallback)(jack_port_id_t port, int, void *arg); 00162 00170 typedef void (*JackFreewheelCallback)(int starting, void *arg); 00171 00176 #define JACK_DEFAULT_AUDIO_TYPE "32 bit float mono audio" 00177 00183 typedef float jack_default_audio_sample_t; 00184 00191 enum JackPortFlags { 00192 00197 JackPortIsInput = 0x1, 00198 00203 JackPortIsOutput = 0x2, 00204 00209 JackPortIsPhysical = 0x4, 00210 00224 JackPortCanMonitor = 0x8, 00225 00240 JackPortIsTerminal = 0x10 00241 }; 00242 00246 enum JackOptions { 00247 00251 JackNullOption = 0x00, 00252 00259 JackNoStartServer = 0x01, 00260 00265 JackUseExactName = 0x02, 00266 00271 JackServerName = 0x04, 00272 00277 JackLoadName = 0x08, 00278 00283 JackLoadInit = 0x10 00284 }; 00285 00287 #define JackOpenOptions (JackServerName|JackNoStartServer|JackUseExactName) 00288 00290 #define JackLoadOptions (JackLoadInit|JackLoadName|JackUseExactName) 00291 00296 typedef enum JackOptions jack_options_t; 00297 00301 enum JackStatus { 00302 00306 JackFailure = 0x01, 00307 00311 JackInvalidOption = 0x02, 00312 00322 JackNameNotUnique = 0x04, 00323 00330 JackServerStarted = 0x08, 00331 00335 JackServerFailed = 0x10, 00336 00340 JackServerError = 0x20, 00341 00345 JackNoSuchClient = 0x40 00346 }; 00347 00352 typedef enum JackStatus jack_status_t; 00353 00354 #endif /* __jack_types_h__ */

Generated on Sat Jan 15 22:24:32 2005 for JACK-AUDIO-CONNECTION-KIT by doxygen 1.3.7