From 552c2436cf26a4d4c37906bdf855109cf8dd4373 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Thu, 22 Nov 2007 16:12:08 +0000 Subject: Syntax changes to test programs and restoration of Windows VC++ project files (gps). --- tests/duplex.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/duplex.cpp') 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 ); -- cgit v1.2.3