Handle snd_pcm_wait timeouts.

This commit is contained in:
Johns 2012-03-07 15:13:07 +01:00
parent 1cbaddf75c
commit ee5804fed7

View File

@ -672,7 +672,8 @@ static void AlsaThread(void)
usleep(24 * 1000); usleep(24 * 1000);
continue; continue;
} }
if (AlsaFlushBuffer || AudioPaused) { // timeout or some commands
if (!err || AlsaFlushBuffer || AudioPaused) {
continue; continue;
} }
if ((err = AlsaPlayRingbuffer())) { // empty / error if ((err = AlsaPlayRingbuffer())) { // empty / error