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

The sample frame data in the inputs of the process method in AudioWorkletProcessor is 0. #2601

Open
asasas234 opened this issue Sep 17, 2024 · 1 comment

Comments

@asasas234
Copy link

I found that besides the case of silence, when my audio is just starting to load and has already finished playing or paused, the process method still executes and passes all sample frames in inputs as 0. Their length is still 128, but they are all 0. My program needs to record the valid data of the audio per second and expects to cache one AudioBuffer per second. So, is 0 considered valid data? How can I accurately filter out invalid data and only retain the valid data?

@padenot
Copy link
Member

padenot commented Sep 18, 2024

Please provide a test case to the browser vendor that exhibits the issue. I know Firefox won't do that, for example.

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

2 participants