Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are execute_tokio_future calls executed in right order? #62

Open
b-ma opened this issue Dec 31, 2023 · 0 comments
Open

Are execute_tokio_future calls executed in right order? #62

b-ma opened this issue Dec 31, 2023 · 0 comments

Comments

@b-ma
Copy link
Collaborator

b-ma commented Dec 31, 2023

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant