diff options
Diffstat (limited to 'tests/in_out.cpp')
| -rw-r--r-- | tests/in_out.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/in_out.cpp b/tests/in_out.cpp index 7513497..131d57b 100644 --- a/tests/in_out.cpp +++ b/tests/in_out.cpp @@ -65,8 +65,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); } @@ -76,8 +75,7 @@ int main(int argc, char *argv[]) buffer = (MY_TYPE *) audio->getStreamBuffer(stream); audio->startStream(stream); } - catch (RtAudioError &m) { - m.printMessage(); + catch (RtError &) { goto cleanup; } @@ -87,8 +85,7 @@ int main(int argc, char *argv[]) try { audio->tickStream(stream); } - catch (RtAudioError &m) { - m.printMessage(); + catch (RtError &) { goto cleanup; } counter += buffer_size; @@ -97,8 +94,7 @@ int main(int argc, char *argv[]) try { audio->stopStream(stream); } - catch (RtAudioError &m) { - m.printMessage(); + catch (RtError &) { } cleanup: |
