summaryrefslogtreecommitdiff
path: root/tests/playsaw.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2007-11-22 16:12:08 +0000
committerStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:29:21 +0200
commit552c2436cf26a4d4c37906bdf855109cf8dd4373 (patch)
treef6b34942e5d09b0326d733df5d7e15c5856628b0 /tests/playsaw.cpp
parentaf95dc23a7b4c12d74f050ba6a725f6fd9fa17f6 (diff)
Syntax changes to test programs and restoration of Windows VC++ project files (gps).
Diffstat (limited to 'tests/playsaw.cpp')
-rw-r--r--tests/playsaw.cpp11
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;