projects
/
rtaudio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wasap bug(?) fix in destructor; Update to record.cpp for default device selection.
[rtaudio.git]
/
tests
/
record.cpp
diff --git
a/tests/record.cpp
b/tests/record.cpp
index d16ea4955efac57ea451753696fb2a88dbfdb863..0e48f77e02dfe87e7cf521cb56837c3e61a7c441 100644
(file)
--- a/
tests/record.cpp
+++ b/
tests/record.cpp
@@
-117,7
+117,10
@@
int main( int argc, char *argv[] )
// Set our stream parameters for input only.
bufferFrames = 512;
RtAudio::StreamParameters iParams;
// Set our stream parameters for input only.
bufferFrames = 512;
RtAudio::StreamParameters iParams;
- iParams.deviceId = device;
+ if ( device == 0 )
+ iParams.deviceId = adc.getDefaultInputDevice();
+ else
+ iParams.deviceId = device;
iParams.nChannels = channels;
iParams.firstChannel = offset;
iParams.nChannels = channels;
iParams.firstChannel = offset;