#include <string.h>#include <regex.h>#include <stdlib.h>#include <stdio.h>#include <assert.h>#include <sys/types.h>#include <unistd.h>#include <errno.h>#include <signal.h>#include <math.h>#include <semaphore.h>#include <jack/types.h>#include <jack/jack.h>#include "pa_util.h"#include "pa_hostapi.h"#include "pa_stream.h"#include "pa_process.h"#include "pa_allocation.h"#include "pa_cpuload.h"#include "../pablio/ringbuffer.c"Data Structures | |
| struct | PaJackHostApiRepresentation |
| struct | PaJackStream |
Defines | |
| #define | STRINGIZE_HELPER(expr) #expr |
| #define | STRINGIZE(expr) STRINGIZE_HELPER(expr) |
| #define | ENSURE_PA(expr) |
| #define | UNLESS(expr, code) |
| #define | ASSERT_CALL(expr, success) |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | MALLOC(size) (PaUtil_GroupAllocateMemory( jackApi->deviceInfoMemory, (size) )) |
| #define | ABS(x) ( (x) > 0 ? (x) : -(x) ) |
| #define | ABS(x) ( (x) > 0 ? (x) : -(x) ) |
Functions | |
| PaError | PaJack_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex hostApiIndex) |
| #define ABS | ( | x | ) | ( (x) > 0 ? (x) : -(x) ) |
| #define ABS | ( | x | ) | ( (x) > 0 ? (x) : -(x) ) |
| #define ASSERT_CALL | ( | expr, | |||
| success | ) |
Value:
aErr_ = (expr); \
assert( aErr_ == success );
| #define ENSURE_PA | ( | expr | ) |
Value:
do { \ if( (paErr_ = (expr)) < paNoError ) \ { \ if( (paErr_) == paUnanticipatedHostError && pthread_self() == mainThread_ ) \ { \ assert( jackErr_ ); \ PaUtil_SetLastHostErrorInfo( paJACK, -1, jackErr_ ); \ } \ PaUtil_DebugPrint(( "Expression '" #expr "' failed in '" __FILE__ "', line: " STRINGIZE( __LINE__ ) "\n" )); \ result = paErr_; \ goto error; \ } \ } while( 0 )
| #define FALSE 0 |
| #define MALLOC | ( | size | ) | (PaUtil_GroupAllocateMemory( jackApi->deviceInfoMemory, (size) )) |
| #define STRINGIZE | ( | expr | ) | STRINGIZE_HELPER(expr) |
| #define STRINGIZE_HELPER | ( | expr | ) | #expr |
| #define TRUE 1 |
| #define UNLESS | ( | expr, | |||
| code | ) |
Value:
do { \ if( (expr) == 0 ) \ { \ if( (code) == paUnanticipatedHostError && pthread_self() == mainThread_ ) \ { \ assert( jackErr_ ); \ PaUtil_SetLastHostErrorInfo( paJACK, -1, jackErr_ ); \ } \ PaUtil_DebugPrint(( "Expression '" #expr "' failed in '" __FILE__ "', line: " STRINGIZE( __LINE__ ) "\n" )); \ result = (code); \ goto error; \ } \ } while( 0 )
| PaError PaJack_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
| PaHostApiIndex | hostApiIndex | |||
| ) |
1.4.7