summaryrefslogtreecommitdiff
path: root/tests/call_inout.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2013-10-09 23:42:21 +0200
committerStephen Sinclair <sinclair@music.mcgill.ca>2013-10-10 01:08:39 +0200
commit8eb71e693530726068addf6b8088aea0fd340f2a (patch)
treec9220a01b1324a5fcd78d9572447a41aecb494eb /tests/call_inout.cpp
parent72ee1e6be2d918af467fef76932231be731795e9 (diff)
Version 2.0.1
Diffstat (limited to 'tests/call_inout.cpp')
-rw-r--r--tests/call_inout.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/call_inout.cpp b/tests/call_inout.cpp
index c4ae167..2e92eb8 100644
--- a/tests/call_inout.cpp
+++ b/tests/call_inout.cpp
@@ -68,8 +68,7 @@ int main(int argc, char *argv[])
audio = new RtAudio(&stream, device, chans, device, chans,
FORMAT, fs, &buffer_size, 8);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
exit(EXIT_FAILURE);
}
@@ -77,8 +76,7 @@ int main(int argc, char *argv[])
audio->setStreamCallback(stream, &inout, NULL);
audio->startStream(stream);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
goto cleanup;
}
@@ -88,8 +86,7 @@ int main(int argc, char *argv[])
try {
audio->stopStream(stream);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
}
cleanup: