MixerNodeInstance¶
class MixerNodeInstance : public NodeInstance , public ConsumerNodeInstance , public ProviderNodeInstance
Base class for Amplimix pipeline nodes that can mix audio data from multiple input buffers.
Variables¶
Name | Description |
---|---|
m_providers | The IDs of the input provider nodes. |
Functions¶
Name | Description |
---|---|
MixerNodeInstance | MixerNodeInstance constructor. |
~MixerNodeInstance | Default destructor. |
Consume | @inherit |
Connect | @inherit ! |
Connect | Sets the input provider nodes for this mixer node. |
Provide | @inherit |
Reset | @inherit |
Variable Details¶
m_providers¶
std::vector<AmObjectID> m_providers
The IDs of the input provider nodes.
Function Details¶
Connect¶
void Connect(AmObjectID provider) final
@inherit
Note
This method appends the given provider to the list of input provider nodes. If the provider node already exists in the list, it will not be added again.
void Connect(const std::vector<AmObjectID>& providers)
Sets the input provider nodes for this mixer node.
- Parameter
providers
- The provider nodes for this mixer node.
Note
This method clears the existing input provider nodes, and replaces them with the provided ones.
Consume¶
void Consume() final
@inherit
MixerNodeInstance¶
MixerNodeInstance()
MixerNodeInstance constructor.
Provide¶
const AudioBuffer* Provide() final
@inherit
Reset¶
void Reset() override
@inherit
~MixerNodeInstance¶
~MixerNodeInstance() override = default
Default destructor.