Test latency estimates.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
#include "loopback/src/qa_tools.h"
◆ FRAMES_PER_BUFFER
#define FRAMES_PER_BUFFER (64) |
◆ M_PI
#define M_PI (3.14159265) |
◆ NUM_SECONDS
◆ SAMPLE_RATE
#define SAMPLE_RATE (44100) |
◆ TABLE_SIZE
◆ main()
References PaStreamParameters::channelCount, PaDeviceInfo::defaultHighOutputLatency, PaDeviceInfo::defaultLowOutputLatency, PaDeviceInfo::defaultSampleRate, PaStreamParameters::device, PaDeviceInfo::hostApi, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, PaDeviceInfo::name, PaHostApiInfo::name, Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetHostApiInfo(), Pa_Initialize(), Pa_Terminate(), paFloat32, paFramesPerBufferUnspecified, paNoDevice, paNoError, paqaCheckLatency(), paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaStreamParameters::suggestedLatency, and TABLE_SIZE.
◆ paqaCheckLatency()
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.
Referenced by main().
◆ g_testsFailed
◆ g_testsPassed
Accumulate counts for how many tests pass or fail.