Closed Bug 970773 Opened 6 years ago Closed 5 years ago

AudioProcessingEvent playbackTime is wrong

Categories

(Core :: Web Audio, defect, P2)

28 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: karlt, Assigned: karlt)

References

Details

(Keywords: regression)

Attachments

(6 files, 1 obsolete file)

Attached file processor-time.html
1. Load testcase.
2. Click start
3. Observe times

Expected: playbackTime > currentTime.
Actual: playbackTime << currentTime, depending on the time between 1 and 2.

4. In another tab, load about:memory and click "Minimize memory usage".
5. Return to testcase and click start again.

Expected: playbackTime > currentTime.
Actual: currentTime - playbackTime is greater than after 3.
Blocks: 952893
No longer blocks: 941873
roc, any ideas?
The Audio Working Group is proposing replacing this API:
http://lists.w3.org/Archives/Public/public-audio/2014JulSep/0061.html
This is blocking DAALA in JS on Firefox (works in every other browser).
Status: NEW → ASSIGNED
If the event loop is running, then it is safe to run script.
Attachment #8472162 - Flags: review?(roc)
Attached patch failed attempt at test (obsolete) — Splinter Review
currentTime is updated via a different mechanism to that of sending AudioProcessingEvents, and so can get ahead of playbackTime sometimes, particularly when things start up.
Attached patch mochitestSplinter Review
This test works better.
Attachment #8472167 - Attachment is obsolete: true
Attachment #8472165 - Flags: review?(ehsan) → review+
You need to log in before you can comment on or make changes to this bug.