diff --git a/src/audio.cpp b/src/audio.cpp index 2d64e0c..b3fb372 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -1057,6 +1057,10 @@ private: AL::Buffer::ID buf = AL::Source::unqueueBuffer(alSrc); + /* If something went wrong, try again later */ + if (buf == AL::Buffer::ID(0)) + break; + if (buf == lastBuf) { /* Reset the processed sample count so