Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
Loading...
Searching...
No Matches
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

◆ setup()

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

◆ push()

void BelaContextFifo::push ( fifo_id_t fifo,
const BelaContext * context )

Send in a context.

Parameters
fifothe fifo to write to.
thecontext to push in.

◆ pop()

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: