Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
BelaContextFifo Class Reference

Public Types

enum  fifo_id_t { kToLong, kToShort, kNumFifos }
 

Public Member Functions

 BelaContextFifo (const BelaContext *context, unsigned int factor)
 
BelaContextsetup (const BelaContext *context, unsigned int factor)
 
void push (fifo_id_t fifo, const BelaContext *context)
 
BelaContextpop (fifo_id_t fifo, double timeoutMs=100)
 

Static Public Member Functions

static bool test ()
 

Static Public Attributes

static constexpr unsigned int kNumBuffers = 2
 

Member Function Documentation

BelaContext* BelaContextFifo::setup ( const BelaContext context,
unsigned int  factor 
)

Initialize the object.

Parameters
contexta template of the input contexts that will be sent with push()
factorthe number of
void BelaContextFifo::push ( fifo_id_t  fifo,
const BelaContext context 
)

Send in a context.

Parameters
fifothe fifo to write to.
thecontext to push in.
BelaContext* BelaContextFifo::pop ( fifo_id_t  fifo,
double  timeoutMs = 100 
)

Receive a context.

Parameters
fifoIdthe fifo to write tp
Returns
the context, or NULL if no context is ready to be retrieved.

The documentation for this class was generated from the following file: