| 109 | } |
| 110 | |
| 111 | ConvolverNode::ConvolverNode(AudioContext& ac) |
| 112 | : AudioScheduledSourceNode(ac, *desc()) |
| 113 | { |
| 114 | _swap_ready = false; |
| 115 | |
| 116 | _normalize = setting("normalize"); |
| 117 | _normalize->setBool(true); |
| 118 | _impulseResponseClip = setting("impulseResponse"); |
| 119 | |
| 120 | addInput(std::unique_ptr<AudioNodeInput>(new AudioNodeInput(this))); |
| 121 | addOutput(std::unique_ptr<AudioNodeOutput>(new AudioNodeOutput(this, 0))); |
| 122 | |
| 123 | lab::sp_create(&_sp); |
| 124 | |
| 125 | _impulseResponseClip->setValueChanged([this]() { |
| 126 | this->_activateNewImpulse(); |
| 127 | }); |
| 128 | |
| 129 | initialize(); |
| 130 | } |
| 131 | |
| 132 | ConvolverNode::~ConvolverNode() |
| 133 | { |
nothing calls this directly
no test coverage detected