Commit of ALSA underrun warning message fix
authorGary Scavone <gary@music.mcgill.ca>
Mon, 6 Apr 2015 19:42:01 +0000 (15:42 -0400)
committerGary Scavone <gary@music.mcgill.ca>
Mon, 6 Apr 2015 19:42:01 +0000 (15:42 -0400)
RtAudio.cpp

index fab38975943363181067b63e04baa1ea6630dace..8cac29935600e75a166283bff42d905b0b258dd6 100755 (executable)
@@ -8036,6 +8036,8 @@ void RtApiAlsa :: callbackEvent()
             errorStream_ << "RtApiAlsa::callbackEvent: error preparing device after underrun, " << snd_strerror( result ) << ".";\r
             errorText_ = errorStream_.str();\r
           }\r
+          else\r
+            errorText_ =  "RtApiAlsa::callbackEvent: audio write error, underrun.";\r
         }\r
         else {\r
           errorStream_ << "RtApiAlsa::callbackEvent: error, current state is " << snd_pcm_state_name( state ) << ", " << snd_strerror( result ) << ".";\r