Commit 2612b2bc authored by rbencina's avatar rbencina

added code to print error result from Pa_Initialize() in pa_devs.c example

git-svn-id: 0f58301d-fd10-0410-b4af-bbb618454e57
parent b49cfe81
......@@ -107,7 +107,12 @@ int main(void)
PaError err;
err = Pa_Initialize();
if( err != paNoError )
printf( "ERROR: Pa_Initialize returned 0x%x\n", err );
goto error;
printf( "PortAudio version number = %d\nPortAudio version text = '%s'\n",
Pa_GetVersion(), Pa_GetVersionText() );
......@@ -242,7 +247,6 @@ int main(void)
fprintf( stderr, "An error occured while using the portaudio stream\n" );
fprintf( stderr, "Error number: %d\n", err );
fprintf( stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
return err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment