summaryrefslogtreecommitdiff
path: root/tests/teststops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/teststops.cpp')
-rw-r--r--tests/teststops.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/teststops.cpp b/tests/teststops.cpp
index ab71dbd..5c6ed38 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__ )
+#if defined( __WINDOWS_ASIO__ ) || defined( __WINDOWS_DS__ ) || defined( __WINDOWS_WASAPI__ )
#include <windows.h>
#define SLEEP( milliseconds ) Sleep( (DWORD) milliseconds )
#else // Unix variants
@@ -51,8 +51,8 @@ struct MyData {
};
// Interleaved buffers
-int pulse( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
- double streamTime, RtAudioStreamStatus status, void *mydata )
+int pulse( void *outputBuffer, void * /*inputBuffer*/, unsigned int nBufferFrames,
+ double /*streamTime*/, RtAudioStreamStatus status, void *mydata )
{
// Write out a pulse signal and ignore the input buffer.
unsigned int i, j;
@@ -141,7 +141,7 @@ int main( int argc, char *argv[] )
SLEEP( pausetime );
}
}
- catch ( RtError& e ) {
+ catch ( RtAudioError& e ) {
e.printMessage();
goto cleanup;
}
@@ -168,7 +168,7 @@ int main( int argc, char *argv[] )
SLEEP( pausetime );
}
}
- catch ( RtError& e ) {
+ catch ( RtAudioError& e ) {
e.printMessage();
goto cleanup;
}
@@ -193,7 +193,7 @@ int main( int argc, char *argv[] )
SLEEP( pausetime );
}
}
- catch ( RtError& e ) {
+ catch ( RtAudioError& e ) {
e.printMessage();
goto cleanup;
}
@@ -222,7 +222,7 @@ int main( int argc, char *argv[] )
SLEEP( pausetime );
}
}
- catch ( RtError& e ) {
+ catch ( RtAudioError& e ) {
e.printMessage();
goto cleanup;
}
@@ -253,7 +253,7 @@ int main( int argc, char *argv[] )
SLEEP( pausetime );
}
}
- catch ( RtError& e ) {
+ catch ( RtAudioError& e ) {
e.printMessage();
goto cleanup;
}