Closed
Bug 1053011
Opened 10 years ago
Closed 9 years ago
AudioContext currentTime is not aligned with processing blocks
Categories
(Core :: Web Audio, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(2 files)
AudioContexts process audio samples in blocks. "block-size is defined to be 128 sample-frames". Therefore currentTime should always correspond to block boundaries.
Part of the reason why it doesn't is the ExtraCurrentTime added in https://hg.mozilla.org/mozilla-central/rev/1424d2e16349
But I'm guessing the other and more important bug is that currentTime is not derived from mCurrentTime instead of mStateComputedTime, which is the point where processing is reached. This means that mCurrentTime lags behind other main thread state.
Comment 1•10 years ago
|
||
We should investigate this again now that the refactoring has landed.
Assignee | ||
Comment 2•10 years ago
|
||
See also bug 962719 comment 10 and bug 956574 comment 24.
Comment 3•10 years ago
|
||
I frequency notice our clock is a bit wrong (too late, not aligned with processing blocks...). This is a pretty fundamental problem that we should fix, as it make everything better.
Priority: P2 → P1
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → karlt
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•9 years ago
|
||
bug 1053011 align "extra" time on AudioContext with processing block size r?padenot
Attachment #8664780 -
Flags: review?(padenot)
Assignee | ||
Comment 5•9 years ago
|
||
I'll put a patch in bug 864171 to remove AudioContext::ExtraCurrentTime().
Updated•9 years ago
|
Attachment #8664780 -
Flags: review?(padenot) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8664780 [details]
MozReview Request: bug 1053011 align "extra" time on AudioContext with processing block size r?padenot
https://reviewboard.mozilla.org/r/20027/#review18313
Assignee | ||
Comment 8•9 years ago
|
||
Flags: in-testsuite+
Comment 9•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•