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/playraw.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/playraw.cpp') diff --git a/tests/playraw.cpp b/tests/playraw.cpp index 75e7d13..f11f83c 100644 --- a/tests/playraw.cpp +++ b/tests/playraw.cpp @@ -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 ); -- cgit v1.2.3