-
Notifications
You must be signed in to change notification settings - Fork 166
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
OfflineAudioContext.suspend can suspend before the given time #1822
Comments
AFAIK, only chrome has implemented this, so it might be a good time to change this behavior before other browsers implement this method. WDYT @padenot |
I don't think rounding up has any usefulness, I'd rather error out, but maybe it's too late for this ? Just to confirm, we haven't implemented this indeed. |
Why error out? What do you mean by this? Rounding down is confusing because if I specified a time t, the context could possibly be suspended before time t. And I always forget this and expect suspension at time t or greater. |
I'm sorry I completely mis-read what you had written last evening. Your proposal sounds fine. |
…r quantum boundary Instead of rounding down, we want to round up so that the actual suspension time is never before the specified time. It's really confusing when the suspension happens before the given time because nothing else in WebAudio works this way.
OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db
OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346}
OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346}
OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346}
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Commit-Queue: Raymond Toy <[email protected]> Cr-Commit-Position: refs/heads/master@{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <tkentchromium.org> Reviewed-by: Hongchan Choi <hongchanchromium.org> Commit-Queue: Raymond Toy <rtoychromium.org> Cr-Commit-Position: refs/heads/master{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214 UltraBlame original commit: 5255301763d07829b256b6fc8022064ab01e500f
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <tkentchromium.org> Reviewed-by: Hongchan Choi <hongchanchromium.org> Commit-Queue: Raymond Toy <rtoychromium.org> Cr-Commit-Position: refs/heads/master{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214 UltraBlame original commit: 5255301763d07829b256b6fc8022064ab01e500f
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <tkentchromium.org> Reviewed-by: Hongchan Choi <hongchanchromium.org> Commit-Queue: Raymond Toy <rtoychromium.org> Cr-Commit-Position: refs/heads/master{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214 UltraBlame original commit: dcf9f8a30353c00c97b288f85ea84f95bd4d3d19
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <tkentchromium.org> Reviewed-by: Hongchan Choi <hongchanchromium.org> Commit-Queue: Raymond Toy <rtoychromium.org> Cr-Commit-Position: refs/heads/master{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214 UltraBlame original commit: 5255301763d07829b256b6fc8022064ab01e500f
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <tkentchromium.org> Reviewed-by: Hongchan Choi <hongchanchromium.org> Commit-Queue: Raymond Toy <rtoychromium.org> Cr-Commit-Position: refs/heads/master{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214 UltraBlame original commit: dcf9f8a30353c00c97b288f85ea84f95bd4d3d19
…suspend, a=testonly Automatic update from web-platform-tests Round up to the next render quantum for suspend OfflineAudioContext.suspend rounds the time up to the next render quantum instead of down. It is sometimes confusing when suspend occurs before the given time, which is different from how everything else works in WebAudio. A few tests need to be fixed because they computed the boundary by rounding down instead of up. One test needed to be adjusted because the times were rounded to different boundaries instead of the same boundary. See also WebAudio/web-audio-api#1822 Bug: 927895 Change-Id: Ie6685c620dd38eb2a059901d13b907764ba1a2db Reviewed-on: https://chromium-review.googlesource.com/c/1450536 Reviewed-by: Kent Tamura <tkentchromium.org> Reviewed-by: Hongchan Choi <hongchanchromium.org> Commit-Queue: Raymond Toy <rtoychromium.org> Cr-Commit-Position: refs/heads/master{#630346} -- wpt-commits: 1b1a627e597f15b60327191799b8081beac2a3cd wpt-pr: 15214 UltraBlame original commit: dcf9f8a30353c00c97b288f85ea84f95bd4d3d19
As currently defined, OfflineAudioContext.suspend(t) can suspend at a
time before t because it rounds down
(https://webaudio.github.io/web-audio-api/#dom-offlineaudiocontext-suspend).
This always catches me by surprise because it's really the only
WebAudio method that can make things happen before the specified
time.
I think it should round up to the next render quantum.
The text was updated successfully, but these errors were encountered: