diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2013-10-09 23:42:21 +0200 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-10 01:08:39 +0200 |
| commit | 8eb71e693530726068addf6b8088aea0fd340f2a (patch) | |
| tree | c9220a01b1324a5fcd78d9572447a41aecb494eb /tests/call_twostreams.cpp | |
| parent | 72ee1e6be2d918af467fef76932231be731795e9 (diff) | |
Version 2.0.1
Diffstat (limited to 'tests/call_twostreams.cpp')
| -rw-r--r-- | tests/call_twostreams.cpp | 18 |
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: |
