cross-platform / dspatch

The Refreshingly Simple Cross-Platform C++ Dataflow / Patching / Pipelining / Graph Processing / Stream Processing / Reactive Programming Framework
https://flowbasedprogramming.com/
BSD 2-Clause "Simplified" License
220 stars 44 forks source link

Can a component output be wired to multiple component inputs? #44

Closed axjollivier closed 1 year ago

axjollivier commented 1 year ago

Hi @MarcusTomlinson,

Just wondering if DSPatch supports wiring the output pin of a component to more than one input pin, or must the user instantiate a broadcast component explicitly? I couldn't find an explicit mention of this, if I'm correct I would suggest adding a note somewhere, perhaps to Circuit::ConnectOutToIn().

Best regards, JO

MarcusTomlinson commented 1 year ago

Hey @axjollivier, yeah an output can be connected to multiple inputs :)

https://github.com/cross-platform/dspatch/blob/master/include/dspatch/Circuit.h#L47

axjollivier commented 1 year ago

Perfect, thanks so much!