| 138 | ////////////////////////// |
| 139 | |
| 140 | SupersawNode::SupersawNode(AudioContext & ac) |
| 141 | : AudioScheduledSourceNode(ac, *desc()) |
| 142 | { |
| 143 | internalNode.reset(new SupersawNodeInternal(ac)); |
| 144 | internalNode->sawCount = setting("sawCount"); |
| 145 | internalNode->sawCount->setUint32(1); |
| 146 | internalNode->detune = param("detune"); |
| 147 | internalNode->frequency = param("frequency"); |
| 148 | |
| 149 | addOutput(std::unique_ptr<AudioNodeOutput>(new AudioNodeOutput(this, 1))); |
| 150 | initialize(); |
| 151 | } |
| 152 | |
| 153 | SupersawNode::~SupersawNode() |
| 154 | { |