MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SetTarget

Method SetTarget

Source/PatchCableSource.cpp:710–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710void PatchCableSource::SetTarget(IClickable* target)
711{
712 if (target != nullptr)
713 {
714 if (mPatchCables.empty())
715 AddPatchCable(target);
716 else if (mPatchCables[0] != nullptr && mPatchCables[0]->GetTarget() != target)
717 SetPatchCableTarget(mPatchCables[0], target, false);
718 }
719 else
720 {
721 mAudioReceiver = nullptr;
722 mNoteReceivers.clear();
723 mPulseReceivers.clear();
724 }
725}
726
727IClickable* PatchCableSource::GetTarget() const
728{

Callers 2

SetPatchCableTargetMethod · 0.45
TestClickMethod · 0.45

Calls 2

emptyMethod · 0.80
GetTargetMethod · 0.45

Tested by 1

TestClickMethod · 0.36