| 115 | } |
| 116 | |
| 117 | void 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 | |
| 132 | void AudioRouter::GetModuleDimensions(float& width, float& height) |
| 133 | { |