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

Method SampledAudioNode

src/core/SampledAudioNode.cpp:90–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 SampledAudioNode::SampledAudioNode(AudioContext& ac)
91 : AudioScheduledSourceNode(ac, *desc())
92 , _internals(new Internals(ac))
93 {
94 m_sourceBus = setting("sourceBus");
95 m_playbackRate = param("playbackRate");
96 m_detune = param("detune");
97 m_dopplerRate = param("dopplerRate");
98
99 m_sourceBus->setValueChanged([this]() {
100 this->_internals->bus_setting_updated = true;
101 });
102
103 // Default to a single stereo output, per ABSN. A call to setBus() will set the number of output channels to that of the bus.
104 addOutput(std::unique_ptr<AudioNodeOutput>(new AudioNodeOutput(this, 2)));
105
106 initialize();
107 }
108
109 SampledAudioNode::~SampledAudioNode()
110 {

Callers

nothing calls this directly

Calls 1

setValueChangedMethod · 0.80

Tested by

no test coverage detected