Search code examples
offlineweb-audio-apiaudiocontext

OfflineAudioContext only rendering and calling onComplete once


I've created an offline context to render a visualization based on the rendered buffer and call startRendering() to get the rendered buffer in the onComplete callback. If I try to create a new set of connected audio nodes, calling startRendering() again does nothing. Do I have to recreate the whole offline context for each render?


Solution

  • Yes, that's how it is supposed to work.