diff core/RTAudioCommandLine.cpp @ 240:1fd334f64f0a

Fixed behaviour of the -G command line closes #1680
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 14 Apr 2016 15:44:38 +0100
parents a156a694864d
children c55c6f6c233c
line wrap: on
line diff
--- a/core/RTAudioCommandLine.cpp	Tue Apr 12 14:21:40 2016 +0200
+++ b/core/RTAudioCommandLine.cpp	Thu Apr 14 15:44:38 2016 +0100
@@ -160,7 +160,9 @@
 			break;
 		case 'G':
 			settings->useDigital = atoi(optarg);
-			settings->numDigitalChannels = 0;
+			if(settings->useDigital == 0){
+				settings->numDigitalChannels = 0;
+			}
 			break;
 		case 'C':
 			settings->numAnalogChannels = atoi(optarg);