summaryrefslogtreecommitdiff
path: root/tests/play_raw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/play_raw.cpp')
-rw-r--r--tests/play_raw.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/play_raw.cpp b/tests/play_raw.cpp
index 827f533..b616571 100644
--- a/tests/play_raw.cpp
+++ b/tests/play_raw.cpp
@@ -79,8 +79,7 @@ int main(int argc, char *argv[])
audio = new RtAudio(&stream, device, chans, 0, 0,
FORMAT, fs, &buffer_size, 2);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
fclose(fd);
exit(EXIT_FAILURE);
}
@@ -89,8 +88,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;
}
@@ -101,8 +99,7 @@ int main(int argc, char *argv[])
try {
audio->tickStream(stream);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
goto cleanup;
}
}
@@ -115,8 +112,7 @@ int main(int argc, char *argv[])
try {
audio->stopStream(stream);
}
- catch (RtAudioError &m) {
- m.printMessage();
+ catch (RtError &) {
}
cleanup: