PortAudio  2.0
Data Structures | Macros | Functions | Variables
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

#define BUFFER_TABLE   14
#define M_PI   (3.14159265)

Referenced by TestOnce().

#define NUM_SECONDS   (3)

Referenced by TestOnce().

#define SAMPLE_RATE   (44100)

Referenced by TestOnce().

#define TABLE_SIZE   (200)

Referenced by TestOnce().

Function Documentation

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

Variable Documentation

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