| 46 | } |
| 47 | |
| 48 | void AudioNodeInput::disconnect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput) |
| 49 | { |
| 50 | ASSERT(g.context()); |
| 51 | if (!junction || !junction->destinationNode() || !toOutput) |
| 52 | return; |
| 53 | |
| 54 | if (junction->isConnected(toOutput)) |
| 55 | { |
| 56 | junction->junctionDisconnectOutput(toOutput); |
| 57 | toOutput->removeInput(g, junction); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void AudioNodeInput::disconnectAll(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> fromInput) |
| 62 | { |
nothing calls this directly
no test coverage detected