summaryrefslogtreecommitdiff
path: root/tests/playsaw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/playsaw.cpp')
-rw-r--r--tests/playsaw.cpp3
1 files changed, 3 insertions, 0 deletions
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 )