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

Method disconnectParam

src/core/AudioContext.cpp:502–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500
501
502void AudioContext::disconnectParam(std::shared_ptr<AudioParam> param, std::shared_ptr<AudioNode> driver, int index)
503{
504 if (!param)
505 throw std::invalid_argument("No parameter specified");
506
507 if (index >= driver->numberOfOutputs())
508 throw std::out_of_range("Output index greater than available outputs on the driver");
509
510 m_internal->pendingParamConnections.enqueue({ConnectionOperationKind::Disconnect, param, driver, index});
511}
512
513void AudioContext::update()
514{

Callers

nothing calls this directly

Calls 1

numberOfOutputsMethod · 0.80

Tested by

no test coverage detected