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

Method GainNode

src/core/GainNode.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26GainNode::GainNode(AudioContext& ac)
27 : AudioNode(ac, *desc())
28 , m_lastGain(1.f)
29 , m_sampleAccurateGainValues(AudioNode::ProcessingSizeInFrames) // FIXME: can probably share temp buffer in context
30{
31 addInput(std::unique_ptr<AudioNodeInput>(new AudioNodeInput(this)));
32 addOutput(std::unique_ptr<AudioNodeOutput>(new AudioNodeOutput(this, 1)));
33
34 m_gain = param("gain");
35
36 initialize();
37}
38
39GainNode::~GainNode()
40{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected