Fixed enumeration of audio output devices.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@450 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2007-06-30 19:38:56 +00:00
parent 5d3f2b762e
commit e0faa141b3

View File

@ -231,6 +231,7 @@ int padevsub_(int *numdev, int *ndefin, int *ndefout,
// numDevices = Pa_CountDevices();
numDevices = Pa_GetDeviceCount();
*numdev=numDevices;
if( numDevices < 0 ) {
err = numDevices;
@ -248,7 +249,7 @@ int padevsub_(int *numdev, int *ndefin, int *ndefout,
if(i == Pa_GetDefaultOutputDevice()) *ndefout=i;
nchin[i]=pdi->maxInputChannels;
nchout[i]=pdi->maxOutputChannels;
if(nchin[i]>0)
if(nchout[i]>0)
printf(" %2d %2d %s\n",i,nchout[i],pdi->name);
}