7#include "utils/icloneable.h"
8#include "utils/ring_buffer.h"
34 [[gnu::hot]]
void process_block (
38 void clear_buffer (std::size_t offset, std::size_t nframes)
override;
49 static constexpr std::string_view kRangeKey =
"range";
50 friend void to_json (nlohmann::json &j,
const CVPort &p)
52 to_json (j,
static_cast<const Port &
> (p));
54 friend void from_json (
const nlohmann::json &j,
CVPort &p)
56 from_json (j,
static_cast<Port &
> (p));
77 BOOST_DESCRIBE_CLASS (CVPort, (Port), (), (), ())
std::unique_ptr< RingBuffer< float > > cv_ring_
Ring buffer for saving the contents of the audio buffer to be used in the UI instead of directly acce...
std::vector< float > buf_
Audio-like data buffer.
void release_resources() override
Called to release resources allocated by prepare_for_processing().
void clear_buffer(std::size_t offset, std::size_t nframes) override
Clears the port buffer.
void prepare_for_processing(sample_rate_t sample_rate, nframes_t max_block_length) override
Called to allocate resources required for processing.
A base class for ports used for connecting processors in the DSP graph.
Lightweight UTF-8 string wrapper with safe conversions.
uint32_t sample_rate_t
Sample rate.
uint32_t nframes_t
Frame count.
Common struct to pass around during processing to avoid repeating the data in function arguments.