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/playraw.cpp | |
| parent | 64f75193375cc6ec0052e33131df5939b7926ecd (diff) | |
| parent | 3dc6e2e86821303784512f86805683f1fda14ccb (diff) | |
Merge 4.0.3 into releases
Diffstat (limited to 'tests/playraw.cpp')
| -rw-r--r-- | tests/playraw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/playraw.cpp b/tests/playraw.cpp index 3b70cdb..a9e4db1 100644 --- a/tests/playraw.cpp +++ b/tests/playraw.cpp @@ -58,7 +58,7 @@ void usage( void ) { std::cout << " file = the raw file to play,\n"; std::cout << " device = optional device to use (default = 0),\n"; std::cout << " and channelOffset = an optional channel offset on the device (default = 0).\n\n"; - exit(0); + exit( 0 ); } struct OutputData { @@ -106,13 +106,13 @@ int main( int argc, char *argv[] ) if ( argc > 4 ) device = (unsigned int) atoi( argv[4] ); if ( argc > 5 ) - offset = (unsigned int) atoi(argv[5]); + offset = (unsigned int) atoi( argv[5] ); OutputData data; data.fd = fopen( file, "rb" ); if ( !data.fd ) { std::cout << "Unable to find or open file!\n"; - exit( 0 ); + exit( 1 ); } // Set our stream parameters for output only. |
