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 AudioBufferSourceNode.loopStart and .loopEnd subsample-accurate? #336
Comments
"No." :) |
TPAC RESOLUTION: No. |
Curiously, the spec currently says However, I think Chrome does do subsample accurate loopStart and loopEnd. Here's an example
If there were no subsampling going on, the output should always be either 0 or 1. In Chrome, some samples are 0.5, indicating that subsampling is being done. Presumably this is also true with Safari (webkit), Edge, and Opera too. I didn't test this though. |
Gecko snaps to frames. |
Note: the resolution is reverted by #915. |
The spec should say whether the loop points specified for an AudioBuffer are subsample-accurate, or whether they are rounded to the nearest sample.
Most commercial sampler applications do not support subsample-accurate loop points and require loop points to be at exact sample frames, for efficiency's sake.
The text was updated successfully, but these errors were encountered: