projects
/
rtaudio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #49 from radarsat1/automake
[rtaudio.git]
/
tests
/
duplex.cpp
diff --git
a/tests/duplex.cpp
b/tests/duplex.cpp
index 291d2aa91eda7a1e8d4d84105d52d80652378465..06462f2872aae5edbf6f883c01037cc8756f7df4 100644
(file)
--- a/
tests/duplex.cpp
+++ b/
tests/duplex.cpp
@@
-97,6
+97,11
@@
int main( int argc, char *argv[] )
oParams.nChannels = channels;
oParams.firstChannel = oOffset;
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;
RtAudio::StreamOptions options;
//options.flags |= RTAUDIO_NONINTERLEAVED;