diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2014-04-26 09:44:39 -0400 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2014-04-26 09:44:39 -0400 |
| commit | 097b83163e65b9828a2bddffd15dc1504a1acab4 (patch) | |
| tree | faca35df8e765e395daea3b7949ce0971c7f90c7 /tests/duplex.cpp | |
| parent | 1bf562b79a9a4940b2da19f7adbd6f065837c4d7 (diff) | |
Updates to test programs when specifying default device numbers.
Diffstat (limited to 'tests/duplex.cpp')
| -rw-r--r-- | tests/duplex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/duplex.cpp b/tests/duplex.cpp index 291d2aa..06462f2 100644 --- a/tests/duplex.cpp +++ b/tests/duplex.cpp @@ -97,6 +97,11 @@ int main( int argc, char *argv[] ) oParams.nChannels = channels; oParams.firstChannel = oOffset; + if ( iDevice == 0 ) + iParams.deviceId = adac.getDefaultInputDevice(); + if ( oDevice == 0 ) + oParams.deviceId = adac.getDefaultOutputDevice(); + RtAudio::StreamOptions options; //options.flags |= RTAUDIO_NONINTERLEAVED; |
