X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=tests%2Fplaysaw.cpp;h=d1953b6ca164c0a14ffc3ef136b08d60f5072c26;hb=77cfec0f03ce712410620d93fd698561901bdaf7;hp=2be179bb1145a5500c53acfb89a29850333b14ba;hpb=17613bf3d55a9424c4971b766db1edf6d2cc90bf;p=rtaudio.git diff --git a/tests/playsaw.cpp b/tests/playsaw.cpp index 2be179b..d1953b6 100644 --- a/tests/playsaw.cpp +++ b/tests/playsaw.cpp @@ -174,6 +174,9 @@ int main( int argc, char *argv[] ) oParams.nChannels = channels; oParams.firstChannel = offset; + if ( device == 0 ) + oParams.deviceId = dac.getDefaultOutputDevice(); + options.flags = RTAUDIO_HOG_DEVICE; options.flags |= RTAUDIO_SCHEDULE_REALTIME; #if !defined( USE_INTERLEAVED )