paqa_devs.c File Reference

Self Testing Quality Assurance app for PortAudio Try to open each device and run through all the possible configurations. More...

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

Data Structures

struct  PaQaData

Defines

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

Functions

int main (void)


Detailed Description

Self Testing Quality Assurance app for PortAudio Try to open each device and run through all the possible configurations.

Author:
Phil Burk http://www.softsynth.com
Pieter adapted to V19 API. Test now relies heavily on Pa_IsFormatSupported(). Uses same 'standard' sample rates as in test pa_devs.c.

Define Documentation

#define EXPECT ( _exp   ) 

Value:

do \
    { \
        if ((_exp)) {\
            /* printf("SUCCESS for %s\n", #_exp ); */ \
            gNumPassed++; \
        } \
        else { \
            printf("ERROR - 0x%x - %s for %s\n", result, \
                   ((result == 0) ? "-" : Pa_GetErrorText(result)), \
                   #_exp ); \
            gNumFailed++; \
            goto error; \
        } \
    } while(0)

#define FRAMES_PER_BUFFER   (64)

#define MODE_INPUT   (0)

#define MODE_OUTPUT   (1)


Function Documentation

int main ( void   ) 

setup host specific info


Generated on Wed Jan 16 17:04:04 2008 for PortAudio by  doxygen 1.5.4