From d031474d953d41a036942c7c8682c2caa87c1833 Mon Sep 17 00:00:00 2001 From: dmitrykos Date: Tue, 1 Jun 2010 12:45:09 +0000 Subject: [PATCH] alsa: - if polling loop is timed out (paTimedOut) PaAlsaStream_WaitForFrames will not report any frames available --- src/hostapi/alsa/pa_linux_alsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hostapi/alsa/pa_linux_alsa.c b/src/hostapi/alsa/pa_linux_alsa.c index bba4df2..36b674e 100644 --- a/src/hostapi/alsa/pa_linux_alsa.c +++ b/src/hostapi/alsa/pa_linux_alsa.c @@ -2987,6 +2987,8 @@ static PaError PaAlsaStream_WaitForFrames( PaAlsaStream *self, unsigned long *fr /* not else ! */ if (timeouts >= 64) /* audio device not working, shall return error to notify waiters */ { + *framesAvail = 0; /* no frames available for processing */ + PA_DEBUG(( "%s: poll timed out, returning error\n", __FUNCTION__, timeouts )); PA_ENSURE( paTimedOut ); } -- 2.43.0