| 432 | } |
| 433 | |
| 434 | void AudioContext::disconnect(std::shared_ptr<AudioNode> destination, std::shared_ptr<AudioNode> source, int destIdx, int srcIdx) |
| 435 | { |
| 436 | if (!destination && !source) |
| 437 | return; |
| 438 | if (source && srcIdx > source->numberOfOutputs()) |
| 439 | throw std::out_of_range("Output index greater than available outputs"); |
| 440 | if (destination && destIdx > destination->numberOfInputs()) |
| 441 | throw std::out_of_range("Input index greater than available inputs"); |
| 442 | m_internal->pendingNodeConnections.enqueue({ConnectionOperationKind::Disconnect, destination, source, destIdx, srcIdx}); |
| 443 | } |
| 444 | |
| 445 | void AudioContext::disconnect(std::shared_ptr<AudioNode> node, int index) |
| 446 | { |
nothing calls this directly
no test coverage detected