Add a log message for audio buffer overflow messages.

This commit is contained in:
Christian Speckner 2018-05-12 16:52:54 +02:00
parent f01553bdc7
commit c3766021d8
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}