| 317 | } |
| 318 | |
| 319 | AudioNode::AudioNode(AudioContext & ac, AudioNodeDescriptor const & desc) |
| 320 | : _scheduler(ac.sampleRate()) |
| 321 | { |
| 322 | if (desc.params) |
| 323 | { |
| 324 | AudioParamDescriptor const * i = desc.params; |
| 325 | while (i->name) |
| 326 | { |
| 327 | _params.push_back(std::make_shared<AudioParam>(i)); |
| 328 | ++i; |
| 329 | } |
| 330 | } |
| 331 | if (desc.settings) |
| 332 | { |
| 333 | AudioSettingDescriptor const * i = desc.settings; |
| 334 | while (i->name) |
| 335 | { |
| 336 | _settings.push_back(std::make_shared<AudioSetting>(i)); |
| 337 | ++i; |
| 338 | } |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | AudioNode::~AudioNode() |
| 343 | { |
nothing calls this directly
no test coverage detected