Remove or overwrite an AudioConnection during runtime (using Teensy AudioShield)

Status
Not open for further replies.

crumblers

New member
Hi,

Once the AudioConnection has been set, is there a way to remove it or overwrite it by plugging something else in its socket ?
Lets say I declared this Audio connection :
Code:
AudioConnection          patchCord68(LineInPreAmpL, 0, DelayBusL, 1);

How can I remove patchCord68 during runtime and plug something else in (DelayBusL, 1) ?

(I bet this has been answered sowehere else already but I haven't found it yet).

Cheers !
 
AudioConnection has these public methods that deal with attaching and detaching from the signal graph:
Code:
	void disconnect(void);
	void connect(void);
The constructor calls connect(), the destructor calls disconnect().
 
Not sure they are documented, I read the audio lib source in depth a while back. There may be some
issues if you randomly play with connections, I recall somewhere there's a thread or two about this.
I think it would be a wise precaution to only call the connect and disconnect methods within
an AudioNoInterrupts()/AudioInterrupts() critical section, although they appear to have their
own low level critical section built-in.
 
Status
Not open for further replies.
Back
Top