|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Bridges hardware audio input into the DSP graph as output ports. More...
#include <src/dsp/audio_input_processor.h>


Public Types | |
| using | InputDataProvider = std::function<std::span<const float * const> ()> |
Public Member Functions | |
| AudioInputProcessor (InputDataProvider provider, units::channel_count_t hw_input_channel_count, ProcessorBaseDependencies dependencies, QObject *parent=nullptr) | |
| void | custom_process_block (dsp::graph::ProcessBlockInfo time_nfo, const dsp::ITransport &transport, const dsp::TempoMap &tempo_map) noexcept override |
| Custom processor logic after processing all owned parameters. | |
| dsp::AudioPort * | find_output_port (int first_channel_index, bool stereo) const noexcept |
| Public Member Functions inherited from zrythm::dsp::ProcessorBase | |
| ProcessorBase (ProcessorBaseDependencies dependencies, utils::Utf8String name={ u8"ProcessorBase" }) | |
| void | set_name (const utils::Utf8String &name) |
| Set a custom name to be used in the DSP graph. | |
| void | add_input_port (const dsp::PortUuidReference &uuid) |
| void | add_output_port (const dsp::PortUuidReference &uuid) |
| void | add_parameter (const dsp::ProcessorParameterUuidReference &uuid) |
| auto & | get_input_ports () const |
| auto & | get_output_ports () const |
| auto & | get_parameters () const |
| const ParameterChangeTracker & | change_tracker () const noexcept |
| Returns the change tracker. | |
| utils::Utf8String | get_node_name () const final |
| Returns a human friendly name of the node. | |
| void | process_block (dsp::graph::ProcessBlockInfo time_nfo, const dsp::ITransport &transport, const dsp::TempoMap &tempo_map) noexcept final |
| Calls custom_process_block() internally after processing all the parameters. | |
| void | prepare_for_processing (const graph::GraphNode *node, units::sample_rate_t sample_rate, units::sample_u32_t max_block_length) final |
| Called to allocate resources required for processing. | |
| void | release_resources () final |
| Called to release resources allocated by prepare_for_processing(). | |
| Public Member Functions inherited from zrythm::dsp::graph::IProcessable | |
| virtual units::sample_u32_t | get_single_playback_latency () const |
| Returns the latency of only the given processable, without adding the previous/next latencies (zero latency by default). | |
Additional Inherited Members | |
| Protected Member Functions inherited from zrythm::dsp::ProcessorBase | |
| virtual void | custom_prepare_for_processing (const graph::GraphNode *node, units::sample_rate_t sample_rate, units::sample_u32_t max_block_length) |
| virtual void | custom_release_resources () |
| auto | dependencies () const |
Bridges hardware audio input into the DSP graph as output ports.
Creates stereo and mono output ports for each hardware input channel pair. During processing, copies data from the hardware input provider into the appropriate output port buffers.
Definition at line 23 of file audio_input_processor.h.
| using zrythm::dsp::AudioInputProcessor::InputDataProvider = std::function<std::span<const float * const> ()> |
Definition at line 28 of file audio_input_processor.h.
|
overridevirtualnoexcept |
Custom processor logic after processing all owned parameters.
By default, this does passthrough to same-type ports.
Reimplemented from zrythm::dsp::ProcessorBase.