Mozzi  version v2.0
sound synthesis library for Arduino
CircularBuffer< ITEM_TYPE > Class Template Reference

Circular buffer object. More...

#include <CircularBuffer.h>

Detailed Description

template<class ITEM_TYPE>
class CircularBuffer< ITEM_TYPE >

Circular buffer object.

Has a fixed number of cells, set to 256.

Template Parameters
ITEM_TYPEthe kind of data to store, eg. int, int8_t etc.

Definition at line 27 of file CircularBuffer.h.

Public Member Functions

 CircularBuffer ()
 Constructor.
 
bool isFull ()
 
bool isEmpty ()
 
void write (ITEM_TYPE in)
 
ITEM_TYPE read ()
 
unsigned long count ()
 
ITEM_TYPE * address ()