Attempt to recover from ring buffer overflows (#141)
This commit is contained in:
parent
cfe5230182
commit
7ae770a79e
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ public:
|
|||
bool addData(const T* buffer, unsigned int nSamples)
|
||||
{
|
||||
if (nSamples >= freeSpace()) {
|
||||
LogError("**** Overflow in %s ring buffer, %u >= %u", m_name, nSamples, freeSpace());
|
||||
LogError("%s buffer overflow, clearing the buffer. (%u >= %u)", m_name, nSamples, freeSpace());
|
||||
clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue