| 229 | } |
| 230 | |
| 231 | void SampledAudioNode::schedule(float when) |
| 232 | { |
| 233 | if (!isPlayingOrScheduled()) |
| 234 | _scheduler.start(0.); |
| 235 | |
| 236 | std::shared_ptr<AudioBus> bus = m_pendingSourceBus; |
| 237 | if (bus) |
| 238 | _internals->incoming.enqueue({when, 0, bus->length(), 0, 0}); |
| 239 | |
| 240 | initialize(); |
| 241 | } |
| 242 | |
| 243 | void SampledAudioNode::schedule(float when, int loopCount) |
| 244 | { |