From d4387bfdc05932ac0ef084e42a28c7e23b870a86 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Mon, 6 Apr 2015 15:42:01 -0400 Subject: [PATCH] Commit of ALSA underrun warning message fix --- RtAudio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RtAudio.cpp b/RtAudio.cpp index fab3897..8cac299 100755 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -8036,6 +8036,8 @@ void RtApiAlsa :: callbackEvent() errorStream_ << "RtApiAlsa::callbackEvent: error preparing device after underrun, " << snd_strerror( result ) << "."; errorText_ = errorStream_.str(); } + else + errorText_ = "RtApiAlsa::callbackEvent: audio write error, underrun."; } else { errorStream_ << "RtApiAlsa::callbackEvent: error, current state is " << snd_pcm_state_name( state ) << ", " << snd_strerror( result ) << "."; -- 2.30.2