00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __jack_types_h__
00022 #define __jack_types_h__
00023
00024 #ifdef WIN32
00025 #include <windows.h>
00026 typedef char int8_t;
00027 typedef unsigned char uint8_t;
00028 typedef short int16_t;
00029 typedef unsigned short uint16_t;
00030 typedef long int32_t;
00031 typedef unsigned long uint32_t;
00032 typedef LONGLONG int64_t;
00033 typedef ULONGLONG uint64_t;
00034 #else
00035 #include <inttypes.h>
00036 #endif
00037
00038 typedef int32_t jack_shmsize_t;
00039
00043 typedef uint32_t jack_nframes_t;
00044
00048 #define JACK_MAX_FRAMES (4294967295U)
00049
00055 #ifdef WIN32
00056 typedef int64_t jack_time_t;
00057 #else
00058 typedef uint64_t jack_time_t;
00059 #endif
00060
00065 #define JACK_LOAD_INIT_LIMIT 1024
00066
00072 typedef uint64_t jack_intclient_t;
00073
00078 typedef struct _jack_port jack_port_t;
00079
00084 typedef struct _jack_client jack_client_t;
00085
00090 #if defined(__x86_64__)
00091 typedef uint64_t jack_port_id_t;
00092 #else
00093 typedef uint32_t jack_port_id_t;
00094 #endif
00095
00108 typedef int (*JackProcessCallback)(jack_nframes_t nframes, void *arg);
00109
00122 typedef void (*JackThreadInitCallback)(void *arg);
00123
00132 typedef int (*JackGraphOrderCallback)(void *arg);
00133
00144 typedef int (*JackXRunCallback)(void *arg);
00145
00160 typedef int (*JackBufferSizeCallback)(jack_nframes_t nframes, void *arg);
00161
00171 typedef int (*JackSampleRateCallback)(jack_nframes_t nframes, void *arg);
00172
00179 typedef void (*JackPortRegistrationCallback)(jack_port_id_t port, int, void *arg);
00180
00190 typedef void (*JackClientRegistrationCallback)(const char* name, int register, void *arg);
00191
00199 typedef void (*JackFreewheelCallback)(int starting, void *arg);
00200
00205 #define JACK_DEFAULT_AUDIO_TYPE "32 bit float mono audio"
00206
00212 typedef float jack_default_audio_sample_t;
00213
00220 enum JackPortFlags {
00221
00226 JackPortIsInput = 0x1,
00227
00232 JackPortIsOutput = 0x2,
00233
00238 JackPortIsPhysical = 0x4,
00239
00253 JackPortCanMonitor = 0x8,
00254
00269 JackPortIsTerminal = 0x10
00270 };
00271
00275 enum JackOptions {
00276
00280 JackNullOption = 0x00,
00281
00288 JackNoStartServer = 0x01,
00289
00294 JackUseExactName = 0x02,
00295
00299 JackServerName = 0x04,
00300
00305 JackLoadName = 0x08,
00306
00311 JackLoadInit = 0x10
00312 };
00313
00315 #define JackOpenOptions (JackServerName|JackNoStartServer|JackUseExactName)
00316
00318 #define JackLoadOptions (JackLoadInit|JackLoadName|JackUseExactName)
00319
00324 typedef enum JackOptions jack_options_t;
00325
00329 enum JackStatus {
00330
00334 JackFailure = 0x01,
00335
00339 JackInvalidOption = 0x02,
00340
00350 JackNameNotUnique = 0x04,
00351
00358 JackServerStarted = 0x08,
00359
00363 JackServerFailed = 0x10,
00364
00368 JackServerError = 0x20,
00369
00373 JackNoSuchClient = 0x40,
00374
00378 JackLoadFailure = 0x80,
00379
00383 JackInitFailure = 0x100,
00384
00388 JackShmFailure = 0x200,
00389
00393 JackVersionError = 0x400
00394 };
00395
00400 typedef enum JackStatus jack_status_t;
00401
00402 #endif