Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::CircularSampleBuffer Class Reference

#include <circular_buffer.h>

Public Member Functions

 CircularSampleBuffer (size_t size)
 
void silence (size_t)
 
void write (Sample const *, size_t)
 
bool read (Sample &s_min, Sample &s_max, size_t n_samples)
 

Private Member Functions

 CircularSampleBuffer (CircularSampleBuffer const &)
 

Private Attributes

PBD::RingBuffer< Sample_rb
 

Detailed Description

Endless ringbuffer

Writing never fails, and may flush out old data. This is intended for an oscilloscope waveform view.

Definition at line 37 of file circular_buffer.h.

Constructor & Destructor Documentation

◆ CircularSampleBuffer() [1/2]

ARDOUR::CircularSampleBuffer::CircularSampleBuffer ( size_t  size)

◆ CircularSampleBuffer() [2/2]

ARDOUR::CircularSampleBuffer::CircularSampleBuffer ( CircularSampleBuffer const &  )
private

Member Function Documentation

◆ read()

bool ARDOUR::CircularSampleBuffer::read ( Sample s_min,
Sample s_max,
size_t  n_samples 
)

◆ silence()

void ARDOUR::CircularSampleBuffer::silence ( size_t  )

◆ write()

void ARDOUR::CircularSampleBuffer::write ( Sample const *  ,
size_t   
)

Member Data Documentation

◆ _rb

PBD::RingBuffer<Sample> ARDOUR::CircularSampleBuffer::_rb
private

Definition at line 47 of file circular_buffer.h.


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