The tcDspCircBuffer class is used to implement a generic circular buffer (FIFO). Once created, the data is accessed via thread-safe Read and Write methods.
This is a simple example of tcDspCircBuffer creation and usage:
{ tcDspCircBuffer *myCircBuff = new tcDspCircBuffer(1024); char myInput[64]; char myOutput[64]; int bytes; ... // add data to buffer bytes = myCircBuff->Write(myInput, 64); ... // read data from buffer bytes = myCircBuffer->Read(myOutput, 64); ... }