diff options
| author | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-10 23:54:06 +0200 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-10 23:54:06 +0200 |
| commit | a1bbe4d94da4e9fd19f54bf83de23a6f5dc345df (patch) | |
| tree | 1e99302e1e96a4dafd56edca54dba12cf6a0bdfa /tests/play_saw.cpp | |
| parent | cdfd5a2d8e8781f1925e90953a330ad38e63222f (diff) | |
| parent | 8eb71e693530726068addf6b8088aea0fd340f2a (diff) | |
Merge 2.0.1 into releases
Diffstat (limited to 'tests/play_saw.cpp')
| -rw-r--r-- | tests/play_saw.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/play_saw.cpp b/tests/play_saw.cpp index bd865aa..1b0d3bb 100644 --- a/tests/play_saw.cpp +++ b/tests/play_saw.cpp @@ -73,8 +73,7 @@ int main(int argc, char *argv[]) audio = new RtAudio(&stream, device, chans, 0, 0, FORMAT, fs, &buffer_size, 4); } - catch (RtAudioError &m) { - m.printMessage(); + catch (RtError &) { exit(EXIT_FAILURE); } @@ -85,8 +84,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; } @@ -104,8 +102,7 @@ int main(int argc, char *argv[]) //cout << "frames until no block = " << audio->streamWillBlock(stream) << endl; 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: |
