diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2014-04-26 08:44:43 -0400 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2014-04-26 08:44:43 -0400 |
| commit | 154e121e500dc2e9f6e6277db5b4f35c4222a216 (patch) | |
| tree | b4a530441acd9fa66360a6017b40707949d09f45 /tests/record.cpp | |
| parent | 9a920447e15eeaf8cf8f6002c120e6fb168caa6f (diff) | |
Wasap bug(?) fix in destructor; Update to record.cpp for default device selection.
Diffstat (limited to 'tests/record.cpp')
| -rw-r--r-- | tests/record.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/record.cpp b/tests/record.cpp index d16ea49..0e48f77 100644 --- 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; - iParams.deviceId = device; + if ( device == 0 ) + iParams.deviceId = adc.getDefaultInputDevice(); + else + iParams.deviceId = device; iParams.nChannels = channels; iParams.firstChannel = offset; |
