Fix of errorString clearing in error() and documentation fixes for DeviceInfo (gps).
authorGary Scavone <gary@music.mcgill.ca>
Sat, 22 Dec 2007 19:29:40 +0000 (19:29 +0000)
committerStephen Sinclair <sinclair@music.mcgill.ca>
Thu, 10 Oct 2013 23:38:21 +0000 (01:38 +0200)
RtAudio.cpp
doc/doxygen/probe.txt
doc/release.txt

index cdefda421c9aeacf0254947f05a795af2dd06a97..8deb5f664ee78faa09bdfc983b74424ed91a0d64 100644 (file)
@@ -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()
index 9fce97bbebb588ccacc6f86fcdd2efdcdb6f0dcf..1352f51224fabd777ff516a590b700bab4d545d3 100644 (file)
@@ -37,15 +37,15 @@ The RtAudio::DeviceInfo structure is defined in RtAudio.h and provides a variety
 
 \code
   typedef struct RtAudio::DeviceInfo {
-    bool probed;                  // true if the device capabilities were successfully probed.
-    std::string name;             // Character string device identifier.
-    int outputChannels;           // Maximum output channels supported by device.
-    int inputChannels;            // Maximum input channels supported by device.
-    int duplexChannels;           // Maximum simultaneous input/output channels supported by device.
-    bool isDefaultOutput;         // true if this is the default output device.
-    bool isDefaultInput;          // true if this is the default input device.
-    std::vector<int> sampleRates; // Supported sample rates.
-    RtAudioFormat nativeFormats;  // Bit mask of supported data formats.
+    bool probed;                           // true if the device capabilities were successfully probed.
+    std::string name;                      // Character string device identifier.
+    unsigned int outputChannels;           // Maximum output channels supported by device.
+    unsigned int inputChannels;            // Maximum input channels supported by device.
+    unsigned int duplexChannels;           // Maximum simultaneous input/output channels supported by device.
+    bool isDefaultOutput;                  // true if this is the default output device.
+    bool isDefaultInput;                   // true if this is the default input device.
+    std::vector<unsigned int> sampleRates; // Supported sample rates.
+    RtAudioFormat nativeFormats;           // Bit mask of supported data formats.
   };
 \endcode
 
index 1fa678d227bbf0f6dffc7fd7aa79aac6eba370df..8fc6384f3e2168b1ab29192433c5759462eaf053 100644 (file)
@@ -1,6 +1,10 @@
 RtAudio - a set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound and ASIO) operating systems.
 
-By Gary P. Scavone, 2001-2007.
+By Gary P. Scavone, 2001-2008.
+
+v4.0.4: ()
+- fixed clearing of error message stream in error()
+- fixed RtAudio::DeviceInfo description in "probing" documentation
 
 v4.0.3: (7 December 2007)
 - added support for MinGW compiler to configure script