PortAudio 2.0
patest_buffer.c File Reference

Test opening streams with different buffer sizes. More...

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

Data Structures

struct  paTestData
 

Macros

#define NUM_SECONDS   (3)
 
#define SAMPLE_RATE   (44100)
 
#define M_PI   (3.14159265)
 
#define TABLE_SIZE   (200)
 
#define BUFFER_TABLE   14
 

Functions

PaError TestOnce (int buffersize, PaDeviceIndex)
 
int main (int argc, char **args)
 

Variables

long buffer_table [] = {paFramesPerBufferUnspecified,16,32,64,128,200,256,500,512,600,723,1000,1024,2345}
 

Detailed Description

Test opening streams with different buffer sizes.

Author
Phil Burk http://www.softsynth.com

Macro Definition Documentation

◆ BUFFER_TABLE

#define BUFFER_TABLE   14

Referenced by main().

◆ M_PI

#define M_PI   (3.14159265)

Referenced by TestOnce().

◆ NUM_SECONDS

#define NUM_SECONDS   (3)

Referenced by TestOnce().

◆ SAMPLE_RATE

#define SAMPLE_RATE   (44100)

Referenced by TestOnce().

◆ TABLE_SIZE

#define TABLE_SIZE   (200)

Referenced by TestOnce().

Function Documentation

◆ main()

int main ( int argc,
char ** args )

◆ TestOnce()

Variable Documentation

◆ buffer_table

long buffer_table[] = {paFramesPerBufferUnspecified,16,32,64,128,200,256,500,512,600,723,1000,1024,2345}

Referenced by main().