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

Fix AudioBufferSourceNode stitching #531

Merged
merged 3 commits into from
Sep 21, 2024
Merged

Conversation

b-ma
Copy link
Collaborator

@b-ma b-ma commented Sep 19, 2024

This fixes some other wpt test (which were quite tricky)

Results for the-audiobuffersourcenode-interface:

Before

RESULTS:
  - # pass: 601
  - # fail: 31
  - # type error issues: 0

After (edit: better with the actual new results :)

RESULTS:
  - # pass: 617
  - # fail: 15
  - # type error issues: 0

I added a new dependency to test for floating point computation errors, I didn't feel like implementing this myself :)

I think it is ok as this could help us in other part of the code where we test against absolute values which is not very clean, let me know what you think!

I tried to comment the code but let me know if something is not clear, or doesn't feel right to you

…r zone, cf. buffer stitching wpt test

make start time sticky to sample time when inside floating point error zone
cf. buffer stitching from wpt
…xtrapolate sample after end of buffer in certain conditions
@orottier
Copy link
Owner

Okay cool. Looks like good improvements. I'm a bit worried about performance regression due to extra loops, float accuracy etc but this seems all slow-track stuff anyway

@orottier orottier merged commit bb58902 into orottier:main Sep 21, 2024
3 checks passed
@b-ma b-ma deleted the fix/absn-stitching branch November 27, 2024 07:41
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

Successfully merging this pull request may close these issues.

2 participants