summaryrefslogtreecommitdiff
path: root/tests/call_twostreams.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/call_twostreams.cpp')
-rw-r--r--tests/call_twostreams.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/call_twostreams.cpp b/tests/call_twostreams.cpp
index d763cc5..f13343a 100644
--- a/tests/call_twostreams.cpp
+++ b/tests/call_twostreams.cpp
@@ -92,8 +92,7 @@ int main(int argc, char *argv[])
try {
audio = new RtAudio();
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
exit(EXIT_FAILURE);
}
@@ -103,8 +102,7 @@ int main(int argc, char *argv[])
stream2 = audio->openStream(device, chans, 0, 0,
FORMAT, fs, &buffer_size, 8);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
goto cleanup;
}
@@ -115,8 +113,7 @@ int main(int argc, char *argv[])
audio->startStream(stream1);
audio->startStream(stream2);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
goto cleanup;
}
@@ -128,8 +125,7 @@ int main(int argc, char *argv[])
audio->stopStream(stream1);
audio->stopStream(stream2);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
goto cleanup;
}
@@ -140,8 +136,7 @@ int main(int argc, char *argv[])
audio->startStream(stream1);
audio->startStream(stream2);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
goto cleanup;
}
@@ -152,8 +147,7 @@ int main(int argc, char *argv[])
audio->stopStream(stream1);
audio->stopStream(stream2);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
}
cleanup: