JackTrip
Public Member Functions | Protected Member Functions | List of all members
RingBufferWavetable Class Reference

Same as RingBuffer, except that it uses the Wavetable mode for lost or late packets. More...

#include <RingBufferWavetable.h>

Inheritance diagram for RingBufferWavetable:
Inheritance graph
[legend]
Collaboration diagram for RingBufferWavetable:
Collaboration graph
[legend]

Public Member Functions

 RingBufferWavetable (int SlotSize, int NumSlots)
 The class constructor.
virtual ~RingBufferWavetable ()
 The class destructor.
- Public Member Functions inherited from RingBuffer
 RingBuffer (int SlotSize, int NumSlots)
 The class constructor.
virtual ~RingBuffer ()
 The class destructor.
void insertSlotBlocking (const int8_t *ptrToSlot)
 Insert a slot into the RingBuffer from ptrToSlot. This method will block until there's space in the buffer.
void readSlotBlocking (int8_t *ptrToReadSlot)
 Read a slot from the RingBuffer into ptrToReadSlot. This method will block until there's space in the buffer.
void insertSlotNonBlocking (const int8_t *ptrToSlot)
 Same as insertSlotBlocking but non-blocking (asynchronous)
void readSlotNonBlocking (int8_t *ptrToReadSlot)
 Same as readSlotBlocking but non-blocking (asynchronous)

Protected Member Functions

virtual void setUnderrunReadSlot (int8_t *ptrToReadSlot)
 Sets the memory in the Read Slot when uderrun occurs. This loops as a wavetable in the last received packet.
- Protected Member Functions inherited from RingBuffer
virtual void setMemoryInReadSlotWithLastReadSlot (int8_t *ptrToReadSlot)
 Uses the last read slot to set the memory in the Read Slot.

Detailed Description

Same as RingBuffer, except that it uses the Wavetable mode for lost or late packets.

Constructor & Destructor Documentation

RingBufferWavetable::RingBufferWavetable ( int  SlotSize,
int  NumSlots 
)
inline

The class constructor.

Parameters
SlotSizeSize of one slot in bytes
NumSlotsNumber of slots
virtual RingBufferWavetable::~RingBufferWavetable ( )
inlinevirtual

The class destructor.

Member Function Documentation

virtual void RingBufferWavetable::setUnderrunReadSlot ( int8_t ptrToReadSlot)
inlineprotectedvirtual

Sets the memory in the Read Slot when uderrun occurs. This loops as a wavetable in the last received packet.

Parameters
ptrToReadSlotPointer to read slot from the RingBuffer

Reimplemented from RingBuffer.


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