RCS file: /u/formes/share/cvsroot/portaudiov19c2/src/common/pa_front.c,v
retrieving revision 1.1
retrieving revision 1.3
diff -B -b -w -U3 -r1.1 -r1.3
|
|
|
|
| 242 | 242 | assert( hostApi->info.defaultInputDevice < hostApi->info.deviceCount ); |
| 243 | 243 | assert( hostApi->info.defaultOutputDevice < hostApi->info.deviceCount ); |
| 244 | 244 | |
| 245 | | hostApis_[hostApisCount_]->privatePaFrontInfo.baseDeviceIndex = baseDeviceIndex; |
| | 245 | hostApi->privatePaFrontInfo.baseDeviceIndex = baseDeviceIndex; |
| 246 | 246 | |
| 247 | 247 | if( hostApis_[hostApisCount_]->info.defaultInputDevice != paNoDevice ) |
| 248 | 248 | hostApis_[hostApisCount_]->info.defaultInputDevice += baseDeviceIndex; |
| … |
… |
|
| 1094 | 1094 | double sampleRate ) |
| 1095 | 1095 | { |
| 1096 | 1096 | PaError result; |
| 1097 | | PaUtilHostApiRepresentation *hostApi; |
| | 1097 | PaUtilHostApiRepresentation *hostApi=0; |
| 1098 | 1098 | PaDeviceIndex hostApiInputDevice, hostApiOutputDevice; |
| 1099 | 1099 | PaStreamParameters hostApiInputParameters, hostApiOutputParameters; |
| 1100 | 1100 | PaStreamParameters *hostApiInputParametersPtr, *hostApiOutputParametersPtr; |
| … |
… |
|
| 1209 | 1209 | void *userData ) |
| 1210 | 1210 | { |
| 1211 | 1211 | PaError result; |
| 1212 | | PaUtilHostApiRepresentation *hostApi; |
| | 1212 | PaUtilHostApiRepresentation *hostApi=0; |
| 1213 | 1213 | PaDeviceIndex hostApiInputDevice, hostApiOutputDevice; |
| 1214 | 1214 | PaStreamParameters hostApiInputParameters, hostApiOutputParameters; |
| 1215 | 1215 | PaStreamParameters *hostApiInputParametersPtr, *hostApiOutputParametersPtr; |
| … |
… |
|
| 1370 | 1370 | if( inputChannelCount > 0 ) |
| 1371 | 1371 | { |
| 1372 | 1372 | hostApiInputParameters.device = Pa_GetDefaultInputDevice(); |
| | 1373 | if(hostApiInputParameters.device == paNoDevice) { |
| | 1374 | return paDeviceUnavailable; |
| | 1375 | } |
| 1373 | 1376 | hostApiInputParameters.channelCount = inputChannelCount; |
| 1374 | 1377 | hostApiInputParameters.sampleFormat = sampleFormat; |
| 1375 | 1378 | /* defaultHighInputLatency is used below instead of |
| … |
… |
|
| 1390 | 1393 | if( outputChannelCount > 0 ) |
| 1391 | 1394 | { |
| 1392 | 1395 | hostApiOutputParameters.device = Pa_GetDefaultOutputDevice(); |
| | 1396 | if(hostApiOutputParameters.device == paNoDevice) { |
| | 1397 | return paDeviceUnavailable; |
| | 1398 | } |
| 1393 | 1399 | hostApiOutputParameters.channelCount = outputChannelCount; |
| 1394 | 1400 | hostApiOutputParameters.sampleFormat = sampleFormat; |
| 1395 | 1401 | /* defaultHighOutputLatency is used below instead of |