PortAudio  2.0
Macros | Functions
patest_suggested_vs_streaminfo_latency.c File Reference

Print suggested vs. PaStreamInfo reported actual latency. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "portaudio.h"

Macros

#define SAMPLE_RATE   (44100)
 
#define FRAMES_PER_BUFFER   2
 
#define NUM_CHANNELS   (2)
 
#define SUGGESTED_LATENCY_START_SECONDS   (0.0)
 
#define SUGGESTED_LATENCY_END_SECONDS   (2.0)
 
#define SUGGESTED_LATENCY_INCREMENT_SECONDS   (0.0005) /* half a millisecond increments */
 

Functions

int main (int argc, const char *argv[])
 

Detailed Description

Print suggested vs. PaStreamInfo reported actual latency.

Author
Ross Bencina rossb.nosp@m.@aud.nosp@m.iomul.nosp@m.ch.c.nosp@m.om

Opens streams with a sequence of suggested latency values from 0 to 2 seconds in .5ms intervals and gathers the resulting actual latency values. Output a csv file and graph suggested vs. actual. Run with framesPerBuffer unspecified, powers of 2 and multiples of 50 and prime number buffer sizes.

Macro Definition Documentation

#define FRAMES_PER_BUFFER   2

Referenced by main().

#define NUM_CHANNELS   (2)

Referenced by main().

#define SAMPLE_RATE   (44100)

Referenced by main().

#define SUGGESTED_LATENCY_END_SECONDS   (2.0)

Referenced by main().

#define SUGGESTED_LATENCY_INCREMENT_SECONDS   (0.0005) /* half a millisecond increments */

Referenced by main().

#define SUGGESTED_LATENCY_START_SECONDS   (0.0)

Referenced by main().

Function Documentation

int main ( int  argc,
const char *  argv[] 
)