Hi all,
Since my mixer object is a bit stalled for the moment, I'm looking to try out dynamically changeable connections to accomplish some of what I was going for. I know this is possible, I'm just not finding a ton of examples online, and I want to make sure I'm not going about this the wrong way.
I saw an example from an old forum post that defines connections at the start like this:
Then in the setup the connection is created like this:
then connects and disconnects them like this:
I have some questions (I know you're shocked). First off, can I define the connection initially like the gui does (in this case AudioConnection DynamicPatchCord1(input1, 0, mixer, 0), then connect/disconnect as needed? Or is it better to leave the definition of what the connection is to the code so it can be modified while the program runs?
I saw on another post a passing reference to .connect() and .disconnect(), but I haven't seen it used. Does anyone have any code that shows this method in use?
Thank you!
Since my mixer object is a bit stalled for the moment, I'm looking to try out dynamically changeable connections to accomplish some of what I was going for. I know this is possible, I'm just not finding a ton of examples online, and I want to make sure I'm not going about this the wrong way.
I saw an example from an old forum post that defines connections at the start like this:
Code:
AudioConnection * DynamicPatchCord1;
Then in the setup the connection is created like this:
Code:
DynamicPatchCord1 = new AudioConnection(*input1, 0, *mixer1, 0);
then connects and disconnects them like this:
Code:
DynamicPatchCord1->connect();
DynamicPatchCord1->disconnect();
I have some questions (I know you're shocked). First off, can I define the connection initially like the gui does (in this case AudioConnection DynamicPatchCord1(input1, 0, mixer, 0), then connect/disconnect as needed? Or is it better to leave the definition of what the connection is to the code so it can be modified while the program runs?
I saw on another post a passing reference to .connect() and .disconnect(), but I haven't seen it used. Does anyone have any code that shows this method in use?
Thank you!