Hey all,
I've got a project that I'd like to be flexible, and use many of the audio objects from the Audio library - but not all of them will be needed at once. I'm looking for a way to effectively toggle certain objects off. I haven't gotten much of a chance to mess around with the issue, so hopefully it's not something glaringly obvious.
I've thought to try out simply destroying the AudioConnection object between the two object's ports, but I'm unsure if this is the correct way to approach. I had hoped the source for AudioConnection would document something about programmatically connecting / disconnecting objects, but I was unable to locate the implementation in the github for the Audio library. I must be missing something there as well.
Any nudges in the right direction, or suggestions on how best to approach something like this while minimizing average CPU usage & Audio memory would be greatly appreciated!
I've got a project that I'd like to be flexible, and use many of the audio objects from the Audio library - but not all of them will be needed at once. I'm looking for a way to effectively toggle certain objects off. I haven't gotten much of a chance to mess around with the issue, so hopefully it's not something glaringly obvious.
I've thought to try out simply destroying the AudioConnection object between the two object's ports, but I'm unsure if this is the correct way to approach. I had hoped the source for AudioConnection would document something about programmatically connecting / disconnecting objects, but I was unable to locate the implementation in the github for the Audio library. I must be missing something there as well.
Any nudges in the right direction, or suggestions on how best to approach something like this while minimizing average CPU usage & Audio memory would be greatly appreciated!