From 089a6da80694960318b86201b2fab3caa2680113 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Sun, 17 May 2009 21:11:45 +0000 Subject: Bug fixes for ALSA buffersize setting and new OS X 10.5 variable (GS). --- tests/record.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/record.cpp') diff --git a/tests/record.cpp b/tests/record.cpp index a56f351..4457f93 100644 --- a/tests/record.cpp +++ b/tests/record.cpp @@ -153,9 +153,8 @@ int main( int argc, char *argv[] ) } std::cout << "\nRecording for " << time << " seconds ... writing file 'record.raw' (buffer frames = " << bufferFrames << ")." << std::endl; - while ( 1 ) { + while ( adc.isStreamRunning() ) { SLEEP( 100 ); // wake every 100 ms to check if we're done - if ( adc.isStreamRunning() == false ) break; } // Now write the entire data to the file. -- cgit v1.2.3