Skip to content

ProcessorNodeInstance

class ProcessorNodeInstance : public NodeInstance , public ConsumerNodeInstance , public ProviderNodeInstance

Base class for Amplimix pipeline nodes that can process audio data in-place.

See
NodeInstance, ConsumerNodeInstance, ProviderNodeInstance

Variables

Name Description
m_provider The ID of the input provider node.

Functions

Name Description
ProcessorNodeInstance PropertyNodeInstance constructor.
~ProcessorNodeInstance Default destructor.
Process Processes input audio data and returns the output audio data.
Consume @inherit
Connect @inherit
Provide @inherit
Reset @inherit

Variable Details

m_provider

AmObjectID m_provider

The ID of the input provider node.

Function Details

Connect

void Connect(AmObjectID provider) final

@inherit

Consume

void Consume() final

@inherit

Process

* Process(const AudioBuffer* input)

Processes input audio data and returns the output audio data.

Parameter input
The input audio data to process.
Return
The output audio data.

ProcessorNodeInstance

ProcessorNodeInstance(bool processOnEmptyBuffer = false)

PropertyNodeInstance constructor.

Parameter processOnEmptyBuffer
If true, the node will execute the Process() method even if the input buffer is nullptr.

Provide

const AudioBuffer* Provide() final

@inherit

Reset

void Reset() override

@inherit

~ProcessorNodeInstance

~ProcessorNodeInstance() override = default

Default destructor.