From eb0d429b7a43e5a9cf522bca4c12e4b69740680e Mon Sep 17 00:00:00 2001 From: rossb Date: Tue, 26 Jul 2011 04:24:49 +0000 Subject: [PATCH] mme test only list output devices --- test/patest_wmme_find_best_latency_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.43.0