diff --git a/src/common/AudioQueue.cxx b/src/common/AudioQueue.cxx index bc6964fe3..fb80a26ce 100644 --- a/src/common/AudioQueue.cxx +++ b/src/common/AudioQueue.cxx @@ -99,7 +99,10 @@ Int16* AudioQueue::enqueue(Int16* fragment) myFragmentQueue.at(fragmentIndex) = fragment; if (mySize < capacity) mySize++; - else myNextFragment = (myNextFragment + 1) % capacity; + else { + myNextFragment = (myNextFragment + 1) % capacity; + (cerr << "audio buffer overflow\n").flush(); + } return newFragment; }