From: rossb Date: Tue, 26 Jul 2011 04:24:49 +0000 (+0000) Subject: mme test only list output devices X-Git-Tag: pa_stable_v19_20111121_r1788~61 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=eb0d429b7a43e5a9cf522bca4c12e4b69740680e;p=portaudio mme test only list output devices --- diff --git a/test/patest_wmme_find_best_latency_params.c b/test/patest_wmme_find_best_latency_params.c index e86018b..876deb6 100644 --- a/test/patest_wmme_find_best_latency_params.c +++ b/test/patest_wmme_find_best_latency_params.c @@ -364,8 +364,8 @@ static void usage( int wmmeHostApiIndex ) fprintf( stderr, "Invalid device index. Use one of these:\n" ); for( i=0; i < Pa_GetDeviceCount(); ++i ){ - if( Pa_GetDeviceInfo(i)->hostApi == wmmeHostApiIndex ) - fprintf( stderr, "%d (%s)\n", i, Pa_GetDeviceInfo(i)->name); + if( Pa_GetDeviceInfo(i)->hostApi == wmmeHostApiIndex && Pa_GetDeviceInfo(i)->maxOutputChannels > 0 ) + fprintf( stderr, "%d (%s)\n", i, Pa_GetDeviceInfo(i)->name ); } Pa_Terminate(); exit(-1);