From b71d5ba31a0ebc433dcc255de7dbb47a689b937c Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Sat, 22 Dec 2007 19:29:40 +0000 Subject: Fix of errorString clearing in error() and documentation fixes for DeviceInfo (gps). --- RtAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RtAudio.cpp') diff --git a/RtAudio.cpp b/RtAudio.cpp index cdefda4..8deb5f6 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -6874,11 +6874,11 @@ extern "C" void *ossCallbackHandler( void *ptr ) // message printing. void RtApi :: error( RtError::Type type ) { + errorStream_.str(""); // clear the ostringstream if ( type == RtError::WARNING && showWarnings_ == true ) std::cerr << '\n' << errorText_ << "\n\n"; else throw( RtError( errorText_, type ) ); - errorStream_.str(""); // clear the ostringstream } void RtApi :: verifyStream() -- cgit v1.2.3