summaryrefslogtreecommitdiff
path: root/tests/record.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2007-11-22 16:08:40 +0000
committerStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:28:53 +0200
commitaf95dc23a7b4c12d74f050ba6a725f6fd9fa17f6 (patch)
tree1b0641f9a06a12309eabf0e2f244fac4531ef476 /tests/record.cpp
parent9ee3d84d670af9bc98899b7eef05f039003a6dba (diff)
Minor syntax changes to record.cpp (gps).
Diffstat (limited to 'tests/record.cpp')
-rw-r--r--tests/record.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/record.cpp b/tests/record.cpp
index f43db19..7fb1317 100644
--- a/tests/record.cpp
+++ b/tests/record.cpp
@@ -96,7 +96,7 @@ int main( int argc, char *argv[] )
RtAudio adc;
if ( adc.getDeviceCount() < 1 ) {
std::cout << "\nNo audio devices found!\n";
- exit( 0 );
+ exit( 1 );
}
channels = (unsigned int) atoi( argv[1] );
@@ -159,7 +159,7 @@ int main( int argc, char *argv[] )
// Now write the entire data to the file.
fd = fopen( "record.raw", "wb" );
fwrite( data.buffer, sizeof( MY_TYPE ), data.totalFrames * channels, fd );
- fclose(fd);
+ fclose( fd );
cleanup:
if ( adc.isStreamOpen() ) adc.closeStream();