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/testall.cpp | |
| parent | 64f75193375cc6ec0052e33131df5939b7926ecd (diff) | |
| parent | 3dc6e2e86821303784512f86805683f1fda14ccb (diff) | |
Merge 4.0.3 into releases
Diffstat (limited to 'tests/testall.cpp')
| -rw-r--r-- | tests/testall.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/testall.cpp b/tests/testall.cpp index af14809..2eeb330 100644 --- a/tests/testall.cpp +++ b/tests/testall.cpp @@ -98,18 +98,17 @@ 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 ) ); + double *data = (double *) calloc( channels, sizeof( double ) ); // Let RtAudio print messages to stderr. dac.showWarnings( true ); |
