Audio port specifics.
More...
#include <src/dsp/audio_port.h>
|
|
| AudioPort (utils::Utf8String label, PortFlow flow, BusLayout layout, uint8_t num_channels, Purpose purpose=Purpose::Main) |
| void | process_block (EngineProcessTimeInfo time_nfo, const dsp::ITransport &transport) noexcept override |
| void | clear_buffer (std::size_t offset, std::size_t nframes) override |
| | Clears the port buffer.
|
| auto | layout () const |
| auto | purpose () const |
| auto & | buffers () const |
| auto & | audio_ring_buffers () const |
| auto | num_channels () const |
| void | mark_as_requires_limiting () |
| auto | requires_limiting () const |
|
void | add_source_rt (const AudioPort &src, EngineProcessTimeInfo time_nfo, float multiplier=1.f) |
| | Adds the contents of src to this port.
|
|
void | copy_source_rt (const AudioPort &src, EngineProcessTimeInfo time_nfo, float multiplier=1.f) |
| void | prepare_for_processing (const graph::GraphNode *node, units::sample_rate_t sample_rate, nframes_t max_block_length) override |
| | Called to allocate resources required for processing.
|
| void | release_resources () override |
| | Called to release resources allocated by prepare_for_processing().
|
| void | set_full_designation_provider (FullDesignationProvider provider) |
| void | set_full_designation_provider (const auto *owner) |
| | Convenience helper for providers that contain a get_full_designation_for_port() method.
|
| bool | is_input () const |
| bool | is_output () const |
| bool | is_midi () const |
| bool | is_cv () const |
| bool | is_audio () const |
| utils::Utf8String | get_label () const |
| auto | get_symbol () const |
| void | set_symbol (const utils::Utf8String &sym) |
| utils::Utf8String | get_node_name () const override |
| | Returns a human friendly name of the node.
|
| nframes_t | get_single_playback_latency () const override |
| | Ports have no latency.
|
| utils::Utf8String | get_full_designation () const |
| | Gets a full designation of the port in the format "Track/Port" or "Track/Plugin/Port".
|
| bool | has_label () const |
| PortType | type () const |
| PortFlow | flow () const |
|
UuidIdentifiableObject & | operator= (const UuidIdentifiableObject &other)=default |
| auto | get_uuid () const |
| auto & | port_sources () const |
| void | set_port_sources (this auto &self, RangeOf< AudioPort * > auto source_ports) |
|
|
void | init_from (AudioPort &obj, const AudioPort &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const AudioPort &port) |
| void | from_json (const nlohmann::json &j, AudioPort &port) |
Audio port specifics.
Definition at line 19 of file audio_port.h.
◆ BusLayout
Description of the channel layout of this port.
Definition at line 34 of file audio_port.h.
◆ Purpose
◆ audio_ring_buffers()
| auto & zrythm::dsp::AudioPort::audio_ring_buffers |
( |
| ) |
const |
|
inlinenodiscard |
◆ buffers()
| auto & zrythm::dsp::AudioPort::buffers |
( |
| ) |
const |
|
inlinenodiscard |
◆ clear_buffer()
| void zrythm::dsp::AudioPort::clear_buffer |
( |
std::size_t | offset, |
|
|
std::size_t | nframes ) |
|
overridevirtual |
◆ layout()
| auto zrythm::dsp::AudioPort::layout |
( |
| ) |
const |
|
inlinenodiscard |
◆ mark_as_requires_limiting()
| void zrythm::dsp::AudioPort::mark_as_requires_limiting |
( |
| ) |
|
|
inline |
◆ num_channels()
| auto zrythm::dsp::AudioPort::num_channels |
( |
| ) |
const |
|
inline |
◆ prepare_for_processing()
| void zrythm::dsp::AudioPort::prepare_for_processing |
( |
const graph::GraphNode * | node, |
|
|
units::sample_rate_t | sample_rate, |
|
|
nframes_t | max_block_length ) |
|
overridevirtual |
Called to allocate resources required for processing.
- Parameters
-
| node | The node in the processing graph. Null means we are processing outside of a graph context and must be handled gracefully. |
| sample_rate | |
| max_block_length | |
Reimplemented from zrythm::dsp::graph::IProcessable.
◆ process_block()
◆ purpose()
| auto zrythm::dsp::AudioPort::purpose |
( |
| ) |
const |
|
inlinenodiscard |
◆ release_resources()
| void zrythm::dsp::AudioPort::release_resources |
( |
| ) |
|
|
overridevirtual |
◆ requires_limiting()
| auto zrythm::dsp::AudioPort::requires_limiting |
( |
| ) |
const |
|
inline |
◆ from_json
| void from_json |
( |
const nlohmann::json & | j, |
|
|
AudioPort & | port ) |
|
friend |
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const AudioPort & | port ) |
|
friend |
◆ AUDIO_RING_SIZE
| size_t zrythm::dsp::AudioPort::AUDIO_RING_SIZE = 65536 |
|
staticconstexpr |
The documentation for this class was generated from the following file: