diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2009-05-17 21:11:45 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:38:25 +0200 |
| commit | 089a6da80694960318b86201b2fab3caa2680113 (patch) | |
| tree | 67c7d13be9f9e6723ae4392411814933c1a98210 /tests/record.cpp | |
| parent | 1022a7876a6ef1980ad5518340df177814783c7f (diff) | |
Bug fixes for ALSA buffersize setting and new OS X 10.5 variable (GS).
Diffstat (limited to 'tests/record.cpp')
| -rw-r--r-- | tests/record.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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. |
