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

Method setDeviceNode

src/core/AudioContext.cpp:635–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void AudioContext::setDeviceNode(std::shared_ptr<AudioNode> device)
636{
637 m_device = device;
638
639 if (auto * callback = dynamic_cast<AudioDeviceRenderCallback *>(device.get()))
640 {
641 device_callback = callback;
642 }
643}
644
645std::shared_ptr<AudioNode> AudioContext::device()
646{

Callers 2

MakeRealtimeAudioContextFunction · 0.80
MakeOfflineAudioContextFunction · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected