PortAudio
2.0
|
Self Testing Quality Assurance app for PortAudio Try to open devices and run through all possible configurations. By default, open only the default devices. Command line options support opening every device, or all input devices, or all output devices. 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 sine wave outputs. More...
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "portaudio.h"
#include "pa_trace.h"
#include "paqa_macros.h"
Data Structures | |
struct | PaSineOscillator |
struct | PaQaTestParameters |
struct | PaQaData |
Macros | |
#define | _USE_MATH_DEFINES |
#define | RUN_TIME_SECONDS (1.2) |
#define | BYPASS_TESTS (0) /* If 1 then skip actual tests and just iterate. */ |
#define | MODE_INPUT (0) |
#define | MODE_OUTPUT (1) |
#define | MAX_TEST_CHANNELS (4) |
#define | LOWEST_FREQUENCY (300.0) |
#define | SINE_AMPLITUDE (0.2) |
#define | MILLIS_PER_SECOND (1000.0) |
#define | DEFAULT_FRAMES_PER_BUFFER (128) |
#define | TEST_LEVEL_QUICK (0) |
#define | TEST_LEVEL_NORMAL (1) |
#define | TEST_LEVEL_EXHAUSTIVE (2) |
#define | SETUP_BUFFERS(_data_type) |
Typedefs | |
typedef PAQA_INSTANTIATE_GLOBALS struct PaSineOscillator | PaSineOscillator |
typedef struct PaQaTestParameters | PaQaTestParameters |
typedef struct PaQaData | PaQaData |
Functions | |
int | main (int argc, char **argv) |
Variables | |
PaQaTestParameters | kDefaultTestParameters |
Self Testing Quality Assurance app for PortAudio Try to open devices and run through all possible configurations. By default, open only the default devices. Command line options support opening every device, or all input devices, or all output devices. 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 sine wave outputs.
Pieter adapted to V19 API. Test now relies heavily on Pa_IsFormatSupported(). Uses same 'standard' sample rates as in test pa_devs.c.
#define _USE_MATH_DEFINES |
#define BYPASS_TESTS (0) /* If 1 then skip actual tests and just iterate. */ |
#define DEFAULT_FRAMES_PER_BUFFER (128) |
#define LOWEST_FREQUENCY (300.0) |
#define MAX_TEST_CHANNELS (4) |
#define MILLIS_PER_SECOND (1000.0) |
#define MODE_INPUT (0) |
#define MODE_OUTPUT (1) |
#define RUN_TIME_SECONDS (1.2) |
#define SETUP_BUFFERS | ( | _data_type | ) |
#define SINE_AMPLITUDE (0.2) |
#define TEST_LEVEL_EXHAUSTIVE (2) |
#define TEST_LEVEL_NORMAL (1) |
#define TEST_LEVEL_QUICK (0) |
typedef struct PaQaTestParameters PaQaTestParameters |
typedef PAQA_INSTANTIATE_GLOBALS struct PaSineOscillator PaSineOscillator |
int main | ( | int | argc, |
char ** | argv | ||
) |
PaQaTestParameters kDefaultTestParameters |