Merge pull request #49 from radarsat1/automake
[rtaudio-cdist.git] / tests / duplex.cpp
index 291d2aa91eda7a1e8d4d84105d52d80652378465..06462f2872aae5edbf6f883c01037cc8756f7df4 100644 (file)
@@ -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;