| 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 | { |
nothing calls this directly
no test coverage detected