node-web-audio-api icon indicating copy to clipboard operation
node-web-audio-api copied to clipboard

Are `execute_tokio_future` calls executed in right order?

Open b-ma opened this issue 1 year ago • 0 comments

thread 'tokio-runtime-worker' panicked at /web-audio-api-rs/src/context/offline.rs:240:21:
InvalidStateError: cannot suspend when rendering has already started

Occurred with this code:

offline.suspend(128 / 48000).then(() => {
  console.log('suspend', offline.state);

  offline.resume();
  console.log('resume', offline.state);
});

const buffer = await offline.startRendering();

b-ma avatar Dec 31 '23 09:12 b-ma