From 154e121e500dc2e9f6e6277db5b4f35c4222a216 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Sat, 26 Apr 2014 08:44:43 -0400 Subject: Wasap bug(?) fix in destructor; Update to record.cpp for default device selection. --- tests/record.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/record.cpp') 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; -- cgit v1.2.3