Test latency estimates.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
#include "loopback/src/qa_tools.h"
#define FRAMES_PER_BUFFER (64) |
#define M_PI (3.14159265) |
#define SAMPLE_RATE (44100) |
References paTestData::callbackCount, PaStreamInfo::inputLatency, paTestData::maxDeltaDacTime, paTestData::maxFramesPerBuffer, paTestData::minDeltaDacTime, paTestData::minFramesPerBuffer, NUM_SECONDS, PaStreamInfo::outputLatency, Pa_CloseStream(), Pa_GetStreamInfo(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), paClipOff, paFramesPerBufferUnspecified, paNoError, and PaStreamParameters::suggestedLatency.
Accumulate counts for how many tests pass or fail.