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/duplex.cpp | |
| parent | 64f75193375cc6ec0052e33131df5939b7926ecd (diff) | |
| parent | 3dc6e2e86821303784512f86805683f1fda14ccb (diff) | |
Merge 4.0.3 into releases
Diffstat (limited to 'tests/duplex.cpp')
| -rw-r--r-- | tests/duplex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/duplex.cpp b/tests/duplex.cpp index 5e63cd7..f416bad 100644 --- a/tests/duplex.cpp +++ b/tests/duplex.cpp @@ -56,7 +56,7 @@ int inout( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, return 0; } -int main(int argc, char *argv[]) +int main( int argc, char *argv[] ) { unsigned int channels, fs, bufferBytes, oDevice = 0, iDevice = 0, iOffset = 0, oOffset = 0; @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) RtAudio adac; if ( adac.getDeviceCount() < 1 ) { std::cout << "\nNo audio devices found!\n"; - exit( 0 ); + exit( 1 ); } channels = (unsigned int) atoi(argv[1]); @@ -101,7 +101,7 @@ int main(int argc, char *argv[]) } catch ( RtError& e ) { std::cout << '\n' << e.getMessage() << '\n' << std::endl; - exit( 0 ); + exit( 1 ); } bufferBytes = bufferFrames * channels * sizeof( MY_TYPE ); |
