00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __jack_types_h__
00023 #define __jack_types_h__
00024
00025 #include <inttypes.h>
00026
00027 typedef int32_t jack_shmsize_t;
00028
00032 typedef uint32_t jack_nframes_t;
00033
00037 #define JACK_MAX_FRAMES (4294967295U)
00038
00039
00044 typedef uint64_t jack_time_t;
00045
00050 #define JACK_LOAD_INIT_LIMIT 1024
00051
00057 typedef uint64_t jack_intclient_t;
00058
00063 typedef struct _jack_port jack_port_t;
00064
00069 typedef struct _jack_client jack_client_t;
00070
00075 typedef uint32_t jack_port_id_t;
00076
00089 typedef int (*JackProcessCallback)(jack_nframes_t nframes, void *arg);
00090
00103 typedef void (*JackThreadInitCallback)(void *arg);
00104
00113 typedef int (*JackGraphOrderCallback)(void *arg);
00114
00125 typedef int (*JackXRunCallback)(void *arg);
00126
00141 typedef int (*JackBufferSizeCallback)(jack_nframes_t nframes, void *arg);
00142
00152 typedef int (*JackSampleRateCallback)(jack_nframes_t nframes, void *arg);
00153
00160 typedef void (*JackPortRegistrationCallback)(jack_port_id_t port, int, void *arg);
00161
00169 typedef void (*JackFreewheelCallback)(int starting, void *arg);
00170
00175 #define JACK_DEFAULT_AUDIO_TYPE "32 bit float mono audio"
00176
00182 typedef float jack_default_audio_sample_t;
00183
00190 enum JackPortFlags {
00191
00196 JackPortIsInput = 0x1,
00197
00202 JackPortIsOutput = 0x2,
00203
00208 JackPortIsPhysical = 0x4,
00209
00223 JackPortCanMonitor = 0x8,
00224
00239 JackPortIsTerminal = 0x10
00240 };
00241
00245 enum JackOptions {
00246
00250 JackNullOption = 0x00,
00251
00258 JackNoStartServer = 0x01,
00259
00264 JackUseExactName = 0x02,
00265
00269 JackServerName = 0x04,
00270
00275 JackLoadName = 0x08,
00276
00281 JackLoadInit = 0x10
00282 };
00283
00285 #define JackOpenOptions (JackServerName|JackNoStartServer|JackUseExactName)
00286
00288 #define JackLoadOptions (JackLoadInit|JackLoadName|JackUseExactName)
00289
00294 typedef enum JackOptions jack_options_t;
00295
00299 enum JackStatus {
00300
00304 JackFailure = 0x01,
00305
00309 JackInvalidOption = 0x02,
00310
00320 JackNameNotUnique = 0x04,
00321
00328 JackServerStarted = 0x08,
00329
00333 JackServerFailed = 0x10,
00334
00338 JackServerError = 0x20,
00339
00343 JackNoSuchClient = 0x40,
00344
00348 JackLoadFailure = 0x80,
00349
00353 JackInitFailure = 0x100,
00354
00358 JackShmFailure = 0x200,
00359
00363 JackVersionError = 0x400
00364 };
00365
00370 typedef enum JackStatus jack_status_t;
00371
00372 #endif