node-web-audio-api
node-web-audio-api copied to clipboard
Are `execute_tokio_future` calls executed in right order?
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();