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/testall.cpp | |
| parent | af95dc23a7b4c12d74f050ba6a725f6fd9fa17f6 (diff) | |
Syntax changes to test programs and restoration of Windows VC++ project files (gps).
Diffstat (limited to 'tests/testall.cpp')
| -rw-r--r-- | tests/testall.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testall.cpp b/tests/testall.cpp index af14809..5efb0dd 100644 --- a/tests/testall.cpp +++ b/tests/testall.cpp @@ -98,15 +98,15 @@ int main( int argc, char *argv[] ) RtAudio dac; if ( dac.getDeviceCount() < 1 ) { std::cout << "\nNo audio devices found!\n"; - exit( 0 ); + exit( 1 ); } - channels = (unsigned int) atoi(argv[1]); - fs = (unsigned int) atoi(argv[2]); + channels = (unsigned int) atoi( argv[1] ); + fs = (unsigned int) atoi( argv[2] ); if ( argc > 3 ) - device = (unsigned int) atoi(argv[3]); + device = (unsigned int) atoi( argv[3] ); if ( argc > 4 ) - offset = (unsigned int) atoi(argv[4]); + offset = (unsigned int) atoi( argv[4] ); double *data; data = (double *) calloc( channels, sizeof( double ) ); |
