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

Self Testing Quality Assurance app for PortAudio Try to open each device and run through all the possible configurations. This test does not verify that the configuration works well. It just verifies that it does not crash. It requires a human to listen to the outputs. More...

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

Data Structures

struct  PaQaData
 

Macros

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

Typedefs

typedef struct PaQaData PaQaData
 

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. This test does not verify that the configuration works well. It just verifies that it does not crash. It requires a human to listen to the outputs.

@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.

Macro Definition 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)
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:422
#define FRAMES_PER_BUFFER   (64)
#define MAX_TEST_CHANNELS   4
#define MODE_INPUT   (0)
#define MODE_OUTPUT   (1)

Typedef Documentation

typedef struct PaQaData PaQaData

Function Documentation

int main ( void  )