diff options
Diffstat (limited to 'tests/playsaw.cpp')
| -rw-r--r-- | tests/playsaw.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/playsaw.cpp b/tests/playsaw.cpp index cbe4203..772881c 100644 --- a/tests/playsaw.cpp +++ b/tests/playsaw.cpp @@ -119,15 +119,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 ) ); @@ -142,7 +142,6 @@ int main( int argc, char *argv[] ) oParams.nChannels = channels; oParams.firstChannel = offset; - options.flags |= RTAUDIO_HOG_DEVICE; #if !defined( USE_INTERLEAVED ) options.flags |= RTAUDIO_NONINTERLEAVED; |
