| 84 | } |
| 85 | |
| 86 | void AudioSummingJunction::junctionDisconnectOutput(std::shared_ptr<AudioNodeOutput> o) |
| 87 | { |
| 88 | if (!o) |
| 89 | return; |
| 90 | |
| 91 | std::lock_guard<std::mutex> lock(junctionMutex); |
| 92 | |
| 93 | for (std::vector<std::weak_ptr<AudioNodeOutput>>::iterator i = m_connectedOutputs.begin(); i != m_connectedOutputs.end(); ++i) |
| 94 | if (!i->expired() && i->lock() == o) |
| 95 | { |
| 96 | m_connectedOutputs.erase(i); |
| 97 | m_renderingStateNeedUpdating = true; |
| 98 | break; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | void AudioSummingJunction::junctionDisconnectAllOutputs() |
| 103 | { |
no outgoing calls
no test coverage detected