Mozzi  version v1.1.0
sound synthesis library for Arduino
CircularBuffer< ITEM_TYPE > Class Template Reference

Circular buffer object. More...

#include <CircularBuffer.h>

Public Member Functions

 CircularBuffer ()
bool isFull ()
bool isEmpty ()
void write (ITEM_TYPE in)
ITEM_TYPE read ()
unsigned long count ()

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 12 of file CircularBuffer.h.