media.cubeb.backend does not work with cubeb remote
Categories
(Core :: Audio/Video: cubeb, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: achronop, Assigned: kinetik)
References
Details
Attachments
(3 external files)
Audioipc client does not allow to set a backend name in audioipc_client init method [1], so it is impossible to choose a specific backend when the remote cubeb is on [2].
[1] https://searchfox.org/mozilla-central/source/media/audioipc/client/src/lib.rs#89
[2] https://searchfox.org/mozilla-central/source/dom/media/CubebUtils.cpp#465
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
The cubeb-rs wrapper doesn't support the backend_name argument (or backend selection at all), so we may also need to add support there too.
The other complication is that the audioipc server is already running in the parent process by the time we call audioipc_client_init in the child process. We could either allow the server to support multiple backends (each child process could request a different backend, retains a closer API mapping to cubeb) or limit the server to a single possible backend (simpler, mostly matches existing global singleton cubeb context behaviour).
Unless there's a good argument to support multiple backends at once, I'll fix this by allowing the server init to take a backend_name and only support one backend at a time. Changing backends would require changing sCubebBackendName and restarting Gecko.
| Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Matthew Gregan [:kinetik] from comment #1)
Unless there's a good argument to support multiple backends at once, I'll fix this by allowing the server init to take a
backend_nameand only support one backend at a time. Changing backends would require changing sCubebBackendName and restarting Gecko.
That's sufficient, thanks. Given that we use that pref mostly for debugging supporting multiple backend just for that would be too much.
| Assignee | ||
Comment 3•7 years ago
|
||
I'll implement this soon, since once we land bug 1425788 we'll want the ability to switch the new Rust CoreAudio backend (bug 1530715) off when debugging issues related to the old vs new backend.
| Assignee | ||
Comment 4•7 years ago
|
||
https://github.com/djg/audioipc-2/pull/65 for the AudioIPC side. The Gecko side also needs a small patch in CubebUtils.cpp to pass sCubebBackendName to audioipc_server_start().
| Assignee | ||
Comment 5•7 years ago
|
||
The cubeb-rs wrapper doesn't support the backend_name argument (or backend selection at all), so we may also need to add support there too.
FWIW, I was wrong about this. Only cubeb_api::context::init is lacking the backend_name parameter (and AudioIPC doesn't use that API), the rest of the code supports it.
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Comment 7•7 years ago
|
||
Depends on D37833
| Assignee | ||
Comment 8•7 years ago
|
||
Depends on D38957
Comment 10•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e3dcc1a1bfcb
https://hg.mozilla.org/mozilla-central/rev/d9eed0a39013
https://hg.mozilla.org/mozilla-central/rev/790684b8a27c
Comment 11•7 years ago
|
||
== Change summary for alert #22098 (as of Wed, 24 Jul 2019 06:09:10 GMT) ==
Improvements:
9% ts_paint_webext linux64-shippable-qr opt e10s stylo 297.54 -> 271.33
7% ts_paint linux64-shippable-qr opt e10s stylo 293.58 -> 272.08
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=22098
Description
•