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/duplex.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/duplex.cpp') diff --git a/tests/duplex.cpp b/tests/duplex.cpp index 291d2aa..06462f2 100644 --- a/tests/duplex.cpp +++ b/tests/duplex.cpp @@ -97,6 +97,11 @@ int main( int argc, char *argv[] ) oParams.nChannels = channels; oParams.firstChannel = oOffset; + if ( iDevice == 0 ) + iParams.deviceId = adac.getDefaultInputDevice(); + if ( oDevice == 0 ) + oParams.deviceId = adac.getDefaultOutputDevice(); + RtAudio::StreamOptions options; //options.flags |= RTAUDIO_NONINTERLEAVED; -- cgit v1.2.3