diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2007-11-22 16:12:08 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:29:21 +0200 |
| commit | 552c2436cf26a4d4c37906bdf855109cf8dd4373 (patch) | |
| tree | f6b34942e5d09b0326d733df5d7e15c5856628b0 /tests/duplex.cpp | |
| parent | af95dc23a7b4c12d74f050ba6a725f6fd9fa17f6 (diff) | |
Syntax changes to test programs and restoration of Windows VC++ project files (gps).
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 ); |
