MCPcopy Create free account
hub / github.com/LabSound/LabSound / disconnect

Method disconnect

src/core/AudioContext.cpp:434–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void 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
445void AudioContext::disconnect(std::shared_ptr<AudioNode> node, int index)
446{

Callers

nothing calls this directly

Calls 2

numberOfOutputsMethod · 0.80
numberOfInputsMethod · 0.80

Tested by

no test coverage detected