Merge remote-tracking branch 'upstream/pr/136'
[rtaudio-cdist.git] / tests / playraw.cpp
index 75e7d130410cbe22d8eeebce4928d76107f555d2..f11f83c28f4b90738ca72cba6773dd30f52234f6 100644 (file)
@@ -125,6 +125,9 @@ int main( int argc, char *argv[] )
   oParams.nChannels = channels;
   oParams.firstChannel = offset;
 
+  if ( device == 0 )
+    oParams.deviceId = dac.getDefaultOutputDevice();
+
   data.channels = channels;
   try {
     dac.openStream( &oParams, NULL, FORMAT, fs, &bufferFrames, &output, (void *)&data );