/* $Id: patest_ringmix.c,v 1.1.1.1 2003-05-09 16:03:56 ggeiger Exp $ */ #include "stdio.h" #include "portaudio.h" /* This will be called asynchronously by the PortAudio engine. */ static int myCallback( void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, PaTimestamp outTime, void *userData ) { float *out = (float *) outputBuffer; float *in = (float *) inputBuffer; float leftInput, rightInput; unsigned int i; if( inputBuffer == NULL ) return 0; /* Read input buffer, process data, and fill output buffer. */ for( i=0; i