PortAudio  2.0
Data Structures | Macros | Functions | Variables
paqa_latency.c File Reference

Test latency estimates. More...

#include <stdio.h>
#include <math.h>
#include "portaudio.h"
#include "loopback/src/qa_tools.h"

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
 

Detailed Description

Test latency estimates.

Author
Ross Bencina rossb.nosp@m.@aud.nosp@m.iomul.nosp@m.ch.c.nosp@m.om
Phil Burk philb.nosp@m.urk@.nosp@m.softs.nosp@m.ynth.nosp@m..com

Macro Definition Documentation

#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)

Function Documentation

int main ( void  )
PaError paqaCheckLatency ( PaStreamParameters outputParamsPtr,
paTestData dataPtr,
double  sampleRate,
unsigned long  framesPerBuffer 
)

Variable Documentation

int g_testsFailed = 0
int g_testsPassed = 0

Accumulate counts for how many tests pass or fail.