err = Pa_Initialize(); if( err != paNoError ) goto error;
You can get a text message that explains the error message by passing it to Pa_GetErrorText( err ). For Example:
printf( "PortAudio error: %s\n", Pa_GetErrorText( err ) );
It is also important, when you are done with PortAudio, to Terminate it:
err = Pa_Terminate(); if( err != paNoError ) printf( "PortAudio error: %s\n", Pa_GetErrorText( err ) );
Previous: Writing a Callback Function | Next: Opening a Stream Using Defaults