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

Improve integration tests for live AudioContext #323

Open
orottier opened this issue Jul 16, 2023 · 0 comments
Open

Improve integration tests for live AudioContext #323

orottier opened this issue Jul 16, 2023 · 0 comments

Comments

@orottier
Copy link
Owner

Most of our integration tests use the OfflineAudioContext which makes it very easy to inspect the generated samples.
Not everything can be tested offline though, e.g. the MediaElementSourceNode, progression of time, events, etc.
We need a method for testing live AudioContexts.

Perhaps we can introduce a TestBackend (similar to NoneBackend) which

  • generates a fixed number of frames and runs faster than real-time (like the OfflineAudioContext)
  • can be polled for the audio output samples
  • is only exposed in cfg(test)
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