From 303d0b5814c16f64e60c0a77d1f87c909e940434 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 30 Jun 2007 19:38:56 +0000 Subject: [PATCH] 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 --- jtaudio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jtaudio.c b/jtaudio.c index fc1b2241d..2be39a0ce 100644 --- a/jtaudio.c +++ b/jtaudio.c @@ -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); }