projects
/
rtaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ee3d84
)
Minor syntax changes to record.cpp (gps).
author
Gary Scavone
<gary@music.mcgill.ca>
Thu, 22 Nov 2007 16:08:40 +0000
(16:08 +0000)
committer
Stephen Sinclair
<sinclair@music.mcgill.ca>
Thu, 10 Oct 2013 23:28:53 +0000
(
01:28
+0200)
tests/record.cpp
patch
|
blob
|
history
diff --git
a/tests/record.cpp
b/tests/record.cpp
index f43db19fb5179e0512813cbbaf6e4b53825194c2..7fb1317ac7922e088c0970a681b3dabd0ad84ee2 100644
(file)
--- 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();