Skip to content

Commit

Permalink
Attempt to recover from ring buffer overflows (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
g0wfv committed Sep 23, 2016
1 parent cfe5230 commit 7ae770a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RingBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ template<class T> class CRingBuffer {
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;
}

Expand Down

0 comments on commit 7ae770a

Please sign in to comment.