Introduction
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.
- See also:
- MityDSP::tcDspCircBuffer Class Reference
Example
This is a simple example of tcDspCircBuffer creation and usage:
{
tcDspCircBuffer *myCircBuff = new tcDspCircBuffer(1024);
char myInput[64];
char myOutput[64];
int bytes;
...
bytes = myCircBuff->Write(myInput, 64);
...
bytes = myCircBuffer->Read(myOutput, 64);
...
}