summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:57:40 +0200
committerStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:57:40 +0200
commit0a26019ddd1e5e979bb38161e2ebee7866e79156 (patch)
treebd582fb0efc317f43ce36889e148b8ed706630bf /tests
parentf44483cc73ce2a36229c3f904c4230243a181e51 (diff)
parentcaedd756a73367c72e8c2c64c5554419d2168b97 (diff)
Merge 4.0.6 into releases
Diffstat (limited to 'tests')
-rw-r--r--tests/record.cpp3
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.