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.34 2004/12/25 18:39:44 joq Exp $
00020 */
00021 
00022 #ifndef __jack_types_h__
00023 #define __jack_types_h__
00024 
00025 #include <inttypes.h>
00026 #ifndef PRIu32
00027 #define        PRIi32          "i"     /* int32_t */
00028 #define        PRIu32          "u"     /* uint32_t */
00029 #define        PRIu64          "llu"    /* uint64_t */
00030 #define        SCNu64          "llu"    /* uint64_t */
00031 #define        PRId32          "d"     /* int32_t */
00032 #define        PRIx64          "llx"    /* uint64_t */
00033 #endif
00034 
00035 typedef int32_t jack_shmsize_t;
00036 
00040 typedef uint32_t             jack_nframes_t;
00041 
00045 #define JACK_MAX_FRAMES (4294967295U)   /* This should be UINT32_MAX, but
00046                                            C++ has a problem with that. */
00047 
00052 typedef uint64_t jack_time_t;
00053 
00058 #define JACK_LOAD_INIT_LIMIT 1024
00059 
00065 typedef uint64_t jack_intclient_t;
00066 
00071 typedef struct _jack_port    jack_port_t;
00072 
00077 typedef struct _jack_client  jack_client_t;
00078 
00083 typedef uint32_t             jack_port_id_t;
00084 
00097 typedef int  (*JackProcessCallback)(jack_nframes_t nframes, void *arg);
00098 
00111 typedef void  (*JackThreadInitCallback)(void *arg);
00112 
00121 typedef int  (*JackGraphOrderCallback)(void *arg);
00122 
00133 typedef int  (*JackXRunCallback)(void *arg);
00134 
00149 typedef int  (*JackBufferSizeCallback)(jack_nframes_t nframes, void *arg);
00150 
00160 typedef int  (*JackSampleRateCallback)(jack_nframes_t nframes, void *arg);
00161 
00168 typedef void (*JackPortRegistrationCallback)(jack_port_id_t port, int, void *arg);
00169 
00177 typedef void (*JackFreewheelCallback)(int starting, void *arg);
00178 
00183 #define JACK_DEFAULT_AUDIO_TYPE "32 bit float mono audio"
00184 
00190 typedef float jack_default_audio_sample_t;
00191 
00198 enum JackPortFlags {
00199 
00204      JackPortIsInput = 0x1,
00205 
00210      JackPortIsOutput = 0x2,
00211 
00216      JackPortIsPhysical = 0x4, 
00217 
00231      JackPortCanMonitor = 0x8,
00232 
00247      JackPortIsTerminal = 0x10
00248 };          
00249 
00253 enum JackOptions {
00254 
00258      JackNullOption = 0x00,
00259 
00266      JackNoStartServer = 0x01,
00267 
00272      JackUseExactName = 0x02,
00273 
00277      JackServerName = 0x04,
00278 
00283      JackLoadName = 0x08,
00284 
00289      JackLoadInit = 0x10
00290 };
00291 
00293 #define JackOpenOptions (JackServerName|JackNoStartServer|JackUseExactName)
00294 
00296 #define JackLoadOptions (JackLoadInit|JackLoadName|JackUseExactName)
00297 
00302 typedef enum JackOptions jack_options_t;
00303 
00307 enum JackStatus {
00308 
00312      JackFailure = 0x01,
00313 
00317      JackInvalidOption = 0x02,
00318 
00328      JackNameNotUnique = 0x04,
00329 
00336      JackServerStarted = 0x08,
00337 
00341      JackServerFailed = 0x10,
00342 
00346      JackServerError = 0x20,
00347 
00351      JackNoSuchClient = 0x40,
00352 
00356      JackLoadFailure = 0x80,
00357 
00361      JackInitFailure = 0x100,
00362 
00366      JackShmFailure = 0x200,
00367 
00371      JackVersionError = 0x400
00372 };
00373 
00378 typedef enum JackStatus jack_status_t;
00379 
00380 #endif /* __jack_types_h__ */

Generated on Wed Mar 8 22:37:31 2006 for JACK-AUDIO-CONNECTION-KIT by  doxygen 1.4.6