summaryrefslogtreecommitdiff
path: root/tests/teststops.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-04-26 09:44:39 -0400
committerGary Scavone <gary@music.mcgill.ca>2014-04-26 09:44:39 -0400
commit097b83163e65b9828a2bddffd15dc1504a1acab4 (patch)
treefaca35df8e765e395daea3b7949ce0971c7f90c7 /tests/teststops.cpp
parent1bf562b79a9a4940b2da19f7adbd6f065837c4d7 (diff)
Updates to test programs when specifying default device numbers.
Diffstat (limited to 'tests/teststops.cpp')
-rw-r--r--tests/teststops.cpp5
1 files changed, 5 insertions, 0 deletions
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;