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/playsaw.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/playsaw.cpp') 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 ) -- cgit v1.2.3