diff options
| author | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:51:47 +0200 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:51:47 +0200 |
| commit | 2572d0d544acf19943ae955059e1b64b0968a3ba (patch) | |
| tree | f908ba7889e4e05614e7425a7ff69273ec3f498e /tests/record.cpp | |
| parent | 64f75193375cc6ec0052e33131df5939b7926ecd (diff) | |
| parent | 3dc6e2e86821303784512f86805683f1fda14ccb (diff) | |
Merge 4.0.3 into releases
Diffstat (limited to 'tests/record.cpp')
| -rw-r--r-- | tests/record.cpp | 4 |
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(); |
