MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / flushBuffer

Method flushBuffer

windows/APIExample/APIExample/DirectShow/CircleBuffer.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void CircleBuffer::flushBuffer()
78{
79 EnterCriticalSection(&this->m_csCircleBuffer);
80 this->m_iInternalReadCursor = 0;
81 this->m_iInternalWriteCursor = 0;
82 LeaveCriticalSection(&this->m_csCircleBuffer);
83}
84
85void CircleBuffer::writeBuffer(const void* pSourceBuffer, const unsigned int iNumBytes, int audioTime)
86{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected