]> Repos - portaudio/commitdiff
mme test only list output devices
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 26 Jul 2011 04:24:49 +0000 (04:24 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 26 Jul 2011 04:24:49 +0000 (04:24 +0000)
test/patest_wmme_find_best_latency_params.c

index e86018bee8bcba7300effec962ffc7748386a6c1..876deb62deaaea0dc4d46f03f29145ae55c1254e 100644 (file)
@@ -364,8 +364,8 @@ static void usage( int wmmeHostApiIndex )
     fprintf( stderr, "Invalid device index. Use one of these:\n" );\r
     for( i=0; i < Pa_GetDeviceCount(); ++i ){\r
 \r
-        if( Pa_GetDeviceInfo(i)->hostApi == wmmeHostApiIndex )\r
-            fprintf( stderr, "%d (%s)\n", i, Pa_GetDeviceInfo(i)->name);\r
+        if( Pa_GetDeviceInfo(i)->hostApi == wmmeHostApiIndex && Pa_GetDeviceInfo(i)->maxOutputChannels > 0 )\r
+            fprintf( stderr, "%d (%s)\n", i, Pa_GetDeviceInfo(i)->name );\r
     }\r
     Pa_Terminate();\r
     exit(-1);\r