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

Circular buffer object. More...

#include <CircularBuffer.h>

Detailed Description

template<class ITEM_TYPE, int16_t BUFFER_SIZE>
class CircularBuffer< ITEM_TYPE, BUFFER_SIZE >

Circular buffer object.

Has a fixed number of cells, set by BUFFER_SIZE.

Template Parameters
ITEM_TYPEthe kind of data to store, eg. int, int8_t etc.
BUFFER_SIZEthe size of the circular buffer

Definition at line 29 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 ()