[Portaudio] Help Reading input buffer.
nospam at softsynth.com
Mon Aug 18 17:31:04 EDT 2008
>> levels. Can someone please tell me how it is that you get the data out
>> of an input stream in the callback function so that I can do such
>> calculations? When I print out the actual values in the input buffer its
>> giving me a vast majority of Zeros and the occasional infinite value
It sounds like you might be interpreting integer data as floats. Did
you set the data type to paFloat32 when you opened the stream?
>> in = (float *) inputbuffer;
That only works if inputBuffer actually points to float data.
More information about the Portaudio