Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::RingBufferOwningPortMixin Class Reference
Inheritance diagram for zrythm::dsp::RingBufferOwningPortMixin:

Data Structures

class  RingBufferReader
 RAII helper for managing ring buffer reader count. More...

Data Fields

std::atomic< int > num_ring_buffer_readers_ { 0 }
 Number of entities that want ring buffers to be written.

Detailed Description

Definition at line 159 of file port.h.

Field Documentation

◆ num_ring_buffer_readers_

std::atomic<int> zrythm::dsp::RingBufferOwningPortMixin::num_ring_buffer_readers_ { 0 }

Number of entities that want ring buffers to be written.

This is used to avoid writing ring buffers when they are not needed by any entity. If a UI element needs ring buffers filled, this should be incremented, and then decremented when no longer needed.

Note
Significant ports like master output will write to their ring buffers anyway.

Definition at line 174 of file port.h.


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