#include #include "portmixer.h" #include "portaudio.h" static int DummyCallbackFunc(void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, PaTimestamp outTime, void *userData) { return 0; } int main(int argc, char **argv) { int num_mixers; int i; PaError error; PortAudioStream *stream; int recDeviceNum; int playDeviceNum; int inputChannels = 2; recDeviceNum = Pa_GetDefaultInputDeviceID(); playDeviceNum = Pa_GetDefaultOutputDeviceID(); error = Pa_OpenStream(&stream, recDeviceNum, inputChannels, paFloat32, NULL, paNoDevice, 0, paFloat32, NULL, 44101, 512, 1, paClipOff | paDitherOff, DummyCallbackFunc, NULL); if (error) { printf("PortAudio error %d: %s\n", error, Pa_GetErrorText(error)); return -1; } num_mixers = Px_GetNumMixers(stream); printf("Number of mixers: %d\n", num_mixers); for(i=0; i