summaryrefslogtreecommitdiff
path: root/tests/playraw.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-04-26 09:44:39 -0400
committerGary Scavone <gary@music.mcgill.ca>2014-04-26 09:44:39 -0400
commit097b83163e65b9828a2bddffd15dc1504a1acab4 (patch)
treefaca35df8e765e395daea3b7949ce0971c7f90c7 /tests/playraw.cpp
parent1bf562b79a9a4940b2da19f7adbd6f065837c4d7 (diff)
Updates to test programs when specifying default device numbers.
Diffstat (limited to 'tests/playraw.cpp')
-rw-r--r--tests/playraw.cpp3
1 files changed, 3 insertions, 0 deletions
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 );