PortAudio
2.0
|
Test latency estimates. More...
Data Structures | |
struct | paTestData |
Macros | |
#define | NUM_SECONDS (5) |
#define | SAMPLE_RATE (44100) |
#define | FRAMES_PER_BUFFER (64) |
#define | M_PI (3.14159265) |
#define | TABLE_SIZE (200) |
Functions | |
PaError | paqaCheckLatency (PaStreamParameters *outputParamsPtr, paTestData *dataPtr, double sampleRate, unsigned long framesPerBuffer) |
int | main (void) |
Variables | |
int | g_testsPassed = 0 |
int | g_testsFailed = 0 |
Test latency estimates.
@author Ross Bencina <rossb@audiomulch.com>
#define FRAMES_PER_BUFFER (64) |
#define M_PI (3.14159265) |
#define NUM_SECONDS (5) |
Referenced by paqaCheckLatency().
#define SAMPLE_RATE (44100) |
#define TABLE_SIZE (200) |
int main | ( | void | ) |
PaError paqaCheckLatency | ( | PaStreamParameters * | outputParamsPtr, |
paTestData * | dataPtr, | ||
double | sampleRate, | ||
unsigned long | framesPerBuffer | ||
) |
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.
int g_testsFailed = 0 |
int g_testsPassed = 0 |
Accumulate counts for how many tests pass or fail.