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

Method PostRepatch

Source/AudioRouter.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void AudioRouter::PostRepatch(PatchCableSource* cableSource, bool fromUserClick)
118{
119 IAudioSource::PostRepatch(cableSource, fromUserClick);
120
121 for (int i = 0; i < (int)mDestinationCables.size(); ++i)
122 {
123 if (cableSource == mDestinationCables[i])
124 {
125 IClickable* target = cableSource->GetTarget();
126 std::string name = target ? target->Name() : " ";
127 mRouteSelector->SetLabel(name.c_str(), i);
128 }
129 }
130}
131
132void AudioRouter::GetModuleDimensions(float& width, float& height)
133{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
GetTargetMethod · 0.45
NameMethod · 0.45
SetLabelMethod · 0.45

Tested by

no test coverage detected