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

Defines

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

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.

Define 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)

#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)

#define MODE_INPUT   (0)

#define MODE_OUTPUT   (1)

#define SAMPLE_RATE   (44100.0)


Function Documentation

int main ( void   ) 


Generated on Sun Jun 28 23:23:43 2009 for PortAudio by  doxygen 1.5.1