PortAudio  2.0
Data Structures | Macros | Typedefs | Functions
paqa_errs.c File Reference

Self Testing Quality Assurance app for PortAudio Do lots of bad things to test error reporting. More...

#include <stdio.h>
#include <math.h>
#include "portaudio.h"

Data Structures

struct  PaQaData
 

Macros

#define MODE_INPUT   (0)
 
#define MODE_OUTPUT   (1)
 
#define FRAMES_PER_BUFFER   (64)
 
#define SAMPLE_RATE   (44100.0)
 
#define EXPECT(_exp)
 
#define HOPEFOR(_exp)
 

Typedefs

typedef struct PaQaData PaQaData
 

Functions

int main (void)
 

Detailed Description

Self Testing Quality Assurance app for PortAudio Do lots of bad things to test error reporting.

@author Phil Burk  http://www.softsynth.com

Pieter Suurmond adapted to V19 API.

Macro Definition Documentation

#define EXPECT (   _exp)
Value:
do \
{ \
if ((_exp)) {\
gNumPassed++; \
} \
else { \
printf("\nERROR - 0x%x - %s for %s\n", result, Pa_GetErrorText(result), #_exp ); \
gNumFailed++; \
goto error; \
} \
} while(0)
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:422
#define FRAMES_PER_BUFFER   (64)
#define HOPEFOR (   _exp)
Value:
do \
{ \
if ((_exp)) {\
gNumPassed++; \
} \
else { \
printf("\nERROR - 0x%x - %s for %s\n", result, Pa_GetErrorText(result), #_exp ); \
gNumFailed++; \
} \
} while(0)
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:422
#define MODE_INPUT   (0)
#define MODE_OUTPUT   (1)
#define SAMPLE_RATE   (44100.0)

Typedef Documentation

typedef struct PaQaData PaQaData

Function Documentation

int main ( void  )