X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=tests%2Fteststops.cpp;h=0b85b48f4a8690da73c3a958a17346049378552e;hb=03599c1281835f886e98da7d15244075ec88913f;hp=b388554a77d9a9f6f1ac821403ab4f254af7b913;hpb=bba842587eeac6a008af5732c55fb895246356ab;p=rtaudio-cdist.git diff --git a/tests/teststops.cpp b/tests/teststops.cpp index b388554..0b85b48 100644 --- a/tests/teststops.cpp +++ b/tests/teststops.cpp @@ -21,7 +21,7 @@ #define REPETITIONS 10 // Platform-dependent sleep routines. -#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ ) || defined( __WINDOWS_WASAPI__ ) +#if defined( WIN32 ) #include #define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds ) #else // Unix variants @@ -107,8 +107,8 @@ int main( int argc, char *argv[] ) // Let RtAudio print messages to stderr. adc->showWarnings( true ); - runtime = RUNTIME * 1000; - pausetime = PAUSETIME * 1000; + runtime = static_cast(RUNTIME * 1000); + pausetime = static_cast(PAUSETIME * 1000); // Set our stream parameters for a duplex stream. bufferFrames = 512; @@ -127,7 +127,7 @@ int main( int argc, char *argv[] ) oParams.deviceId = adc->getDefaultOutputDevice(); // First, test external stopStream() calls. - mydata.pulseCount = PULSE_RATE * fs; + mydata.pulseCount = static_cast(PULSE_RATE * fs); mydata.nFrames = 50 * fs; mydata.returnValue = 0; try {