Replies: 2 comments 2 replies
-
A few issues here. First of all, the Regarding your assertion, when you attach a node to the graph, you attach it to another node. You're passing in
You didn't get a compilation error because the So just to summarise, when you attach a node to the graph, you need to attach it to another node, not directly to the (Moving this to the discussion section.) |
Beta Was this translation helpful? Give feedback.
-
Ok, mostly understood, i guess. But how is the This is what i want to achieve: The filter bank shall be reusable and contains several filters. Its input and output might be disconnected at some point in time and reconnected to some other sound or engine object. |
Beta Was this translation helpful? Give feedback.
-
I am trying to define a nodegraph wich can be attached inbetween a ma_sound object an a ma_engine. The nodegraph shall carry multiple instances of filters. However, your API is apparently not supposed to be used like this. Attaching a ma_sound to a ma_node_graph fails with MA_INVALID_OPERATION.
Let me express with a code snippet what i am trying to achieve:
The line assert(ma_node_attach_output_bus(&sound, 0, &nodeGraph, 0) == MA_SUCCESS); fails here, while attaching a single filter inbetween ma_sound and ma_engine works.
How could I realise and/or group a set of filters together?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions