Closed Bug 1513722 Opened 7 years ago Closed 7 years ago

Run AudioWorklet from offline MSG thread

Categories

(Core :: Web Audio, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: karlt, Assigned: karlt)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #1476514 +++ As discussed in Bug 1458448, all JS associated with the worklet global should run on a single thread. We'd like to run AudioWorkletProcessor.process() calls from the MSG thread, and so that means that all JS will need to run from the MSG thread. Currently, the MSG often uses multiple threads (bug 1473469), but uses only a single thread for OfflineAudioContext. That means that we can run JS for OfflineAudioContext.audioWorklet on the MSG thread without the need to wait for the solution to bug 1473469. That enables the AudioWorklet implementation to be developed and tested in parallel with the solution to bug 1473469.
Assignee: nobody → karlt
The on-demand creation from Worklet.addModule() provides the same creation path for clients that provide their own thread.
Attachment #9030928 - Attachment description: bug 1476514 expose WorkletJSContext creation and deletion and delay creation until required r?baku → bug 1513722 expose WorkletJSContext creation and deletion and delay creation until required r?baku
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c454fd1dbcb expose WorkletJSContext creation and deletion and delay creation until required r=baku https://hg.mozilla.org/integration/autoland/rev/8e2c3015fc95 run AudioWorklet for OfflineAudioContext on MSG thread r=padenot
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8d5eac9cc761 expose WorkletJSContext creation and deletion and delay creation until required r=baku https://hg.mozilla.org/integration/autoland/rev/934614ed9f72 run AudioWorklet for OfflineAudioContext on MSG thread r=padenot
Flags: needinfo?(karlt)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Depends on: 1516956
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: