mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 20:55:40 -05:00
Print to STDERR
Print to STDERR Take 3
This commit is contained in:
@@ -391,9 +391,9 @@ playSynthesizedVoice (dsd_opts * opts, dsd_state * state)
|
|||||||
|
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
fprintf (stderr, stderr, "An error occured while using the portaudio output stream\n" );
|
fprintf (stderr, "An error occured while using the portaudio output stream\n" );
|
||||||
fprintf (stderr, stderr, "Error number: %d\n", err );
|
fprintf (stderr, "Error number: %d\n", err );
|
||||||
fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -484,9 +484,9 @@ int getPADevice(char* dev, int input, PaStream** stream)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
fprintf (stderr, stderr, "An error occured while initializing a portaudio stream\n" );
|
fprintf (stderr, "An error occured while initializing a portaudio stream\n" );
|
||||||
fprintf (stderr, stderr, "Error number: %d\n", err );
|
fprintf (stderr, "Error number: %d\n", err );
|
||||||
fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -388,9 +388,9 @@ liveScanner (dsd_opts * opts, dsd_state * state)
|
|||||||
PaError err = Pa_StartStream( opts->audio_in_pa_stream );
|
PaError err = Pa_StartStream( opts->audio_in_pa_stream );
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
//fprintf (stderr, stderr, "An error occured while starting the portaudio input stream\n" );
|
//fprintf (stderr, "An error occured while starting the portaudio input stream\n" );
|
||||||
//fprintf (stderr, stderr, "Error number: %d\n", err );
|
//fprintf (stderr, "Error number: %d\n", err );
|
||||||
//fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
//fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -459,9 +459,9 @@ cleanupAndExit (dsd_opts * opts, dsd_state * state)
|
|||||||
err = Pa_CloseStream( opts->audio_in_pa_stream );
|
err = Pa_CloseStream( opts->audio_in_pa_stream );
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
//fprintf (stderr, stderr, "An error occured while closing the portaudio input stream\n" );
|
//fprintf (stderr, "An error occured while closing the portaudio input stream\n" );
|
||||||
//fprintf (stderr, stderr, "Error number: %d\n", err );
|
//fprintf (stderr, "Error number: %d\n", err );
|
||||||
//fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
//fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(opts->audio_out_pa_stream != NULL)
|
if(opts->audio_out_pa_stream != NULL)
|
||||||
@@ -471,24 +471,24 @@ cleanupAndExit (dsd_opts * opts, dsd_state * state)
|
|||||||
err = Pa_StopStream( opts->audio_out_pa_stream );
|
err = Pa_StopStream( opts->audio_out_pa_stream );
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
//fprintf (stderr, stderr, "An error occured while closing the portaudio output stream\n" );
|
//fprintf (stderr, "An error occured while closing the portaudio output stream\n" );
|
||||||
//fprintf (stderr, stderr, "Error number: %d\n", err );
|
//fprintf (stderr, "Error number: %d\n", err );
|
||||||
//fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
//fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
}
|
}
|
||||||
err = Pa_CloseStream( opts->audio_out_pa_stream );
|
err = Pa_CloseStream( opts->audio_out_pa_stream );
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
//fprintf (stderr, stderr, "An error occured while closing the portaudio output stream\n" );
|
//fprintf (stderr, "An error occured while closing the portaudio output stream\n" );
|
||||||
//fprintf (stderr, stderr, "Error number: %d\n", err );
|
//fprintf (stderr, "Error number: %d\n", err );
|
||||||
//fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
//fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = Pa_Terminate();
|
err = Pa_Terminate();
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
//fprintf (stderr, stderr, "An error occured while terminating portaudio\n" );
|
//fprintf (stderr, "An error occured while terminating portaudio\n" );
|
||||||
//fprintf (stderr, stderr, "Error number: %d\n", err );
|
//fprintf (stderr, "Error number: %d\n", err );
|
||||||
//fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
//fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -989,9 +989,9 @@ main (int argc, char **argv)
|
|||||||
PaError err = Pa_Initialize();
|
PaError err = Pa_Initialize();
|
||||||
if( err != paNoError )
|
if( err != paNoError )
|
||||||
{
|
{
|
||||||
//fprintf (stderr, stderr, "An error occured while initializing portaudio\n" );
|
//fprintf (stderr, "An error occured while initializing portaudio\n" );
|
||||||
//fprintf (stderr, stderr, "Error number: %d\n", err );
|
//fprintf (stderr, "Error number: %d\n", err );
|
||||||
//fprintf (stderr, stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
//fprintf (stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
|
||||||
exit(err);
|
exit(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user