diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-12-31 01:32:12 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-12-31 01:32:12 +0000 |
commit | fe8aa4ce5e8eebc1c6f762f4fc40328718a13e22 (patch) | |
tree | 90aabb628eeade33b37c3fe967557ca9b27ead62 /pd/portaudio_v18/pa_tests/patest_ringmix.c | |
parent | 65a1b98552d7c6a93aedfb7c9b5d83f9038227cb (diff) |
Deleted unused (?) files
svn path=/trunk/; revision=4318
Diffstat (limited to 'pd/portaudio_v18/pa_tests/patest_ringmix.c')
-rw-r--r-- | pd/portaudio_v18/pa_tests/patest_ringmix.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/pd/portaudio_v18/pa_tests/patest_ringmix.c b/pd/portaudio_v18/pa_tests/patest_ringmix.c deleted file mode 100644 index 9d78ea13..00000000 --- a/pd/portaudio_v18/pa_tests/patest_ringmix.c +++ /dev/null @@ -1,41 +0,0 @@ -/* $Id: patest_ringmix.c,v 1.1.1.1 2002/01/22 00:52:37 phil 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<framesPerBuffer; i++ ) - { - leftInput = *in++; /* Get interleaved samples from input buffer. */ - rightInput = *in++; - *out++ = leftInput * rightInput; /* ring modulation */ - *out++ = 0.5f * (leftInput + rightInput); /* mix */ - } - return 0; -} -/* Open a PortAudioStream to input and output audio data. */ -int main(void) -{ - PortAudioStream *stream; - Pa_Initialize(); - Pa_OpenDefaultStream( - &stream, - 2, 2, /* stereo input and output */ - paFloat32, 44100.0, - 64, 0, /* 64 frames per buffer, let PA determine numBuffers */ - myCallback, NULL ); - Pa_StartStream( stream ); - Pa_Sleep( 10000 ); /* Sleep for 10 seconds while processing. */ - Pa_StopStream( stream ); - Pa_CloseStream( stream ); - Pa_Terminate(); - return 0; -} |