From 097b83163e65b9828a2bddffd15dc1504a1acab4 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Sat, 26 Apr 2014 09:44:39 -0400 Subject: Updates to test programs when specifying default device numbers. --- tests/teststops.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/teststops.cpp') diff --git a/tests/teststops.cpp b/tests/teststops.cpp index 5c6ed38..e24c064 100644 --- a/tests/teststops.cpp +++ b/tests/teststops.cpp @@ -121,6 +121,11 @@ int main( int argc, char *argv[] ) iParams.nChannels = mydata.channels; iParams.firstChannel = iOffset; + if ( iDevice == 0 ) + iParams.deviceId = adc->getDefaultInputDevice(); + if ( oDevice == 0 ) + oParams.deviceId = adc->getDefaultOutputDevice(); + // First, test external stopStream() calls. mydata.pulseCount = PULSE_RATE * fs; mydata.nFrames = 50 * fs; -- cgit v1.2.3