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

Method AudioNode

src/core/AudioNode.cpp:319–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319AudioNode::AudioNode(AudioContext & ac, AudioNodeDescriptor const & desc)
320 : _scheduler(ac.sampleRate())
321{
322 if (desc.params)
323 {
324 AudioParamDescriptor const * i = desc.params;
325 while (i->name)
326 {
327 _params.push_back(std::make_shared<AudioParam>(i));
328 ++i;
329 }
330 }
331 if (desc.settings)
332 {
333 AudioSettingDescriptor const * i = desc.settings;
334 while (i->name)
335 {
336 _settings.push_back(std::make_shared<AudioSetting>(i));
337 ++i;
338 }
339 }
340}
341
342AudioNode::~AudioNode()
343{

Callers

nothing calls this directly

Calls 1

sampleRateMethod · 0.45

Tested by

no test coverage detected