Show
Ignore:
Timestamp:
02/29/08 19:38:27 (9 months ago)
Author:
rossb
Message:

patch from magnus jonsson to print error instead of crash in tests when there is no default input (or output) device. changes to paqa_errs are related to ticket #61

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/test/patest_in_overflow.c

    r1097 r1368  
    141141 
    142142    inputParameters.device = Pa_GetDefaultInputDevice();  /* default input device */ 
     143    if (inputParameters.device == paNoDevice) { 
     144      fprintf(stderr,"Error: No default input device.\n"); 
     145      goto error; 
     146    } 
    143147    inputParameters.channelCount = 1;                      /* mono output */ 
    144148    inputParameters.sampleFormat = paFloat32;              /* 32 bit floating point output */