Yet Another Synthesizer Engine
 
Loading...
Searching...
No Matches
yase::RingBuffer< DataType > Class Template Reference

#include <ring_buffer.hh>

Detailed Description

template<typename DataType>
class yase::RingBuffer< DataType >

A Ring Buffer for multi-threaded communications.

This code was taken from a post by Shane Kirk http://shanekirk.com/category/programming/cc/. Minor modifications and a bug-fix were made by Eric Klavins, August 2023.

Public Member Functions

 RingBuffer (int capacity)
 
int getReadableItemCount () const
 
int getWriteableItemCount () const
 
int read (DataType *pData, int max)
 
int write (DataType *pData, int numItems)
 

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