Commit Graph
859 Commits
Author SHA1 Message Date
Carlos BarreroandClaude Opus 5 bfb7645cd1 fix(linux/audio): capture in the canonical channel layout
The PulseAudio backend built the capture stream's channel map from the Opus
channel mapping. That mapping is applied by the multistream encoder in
audio.cpp and undone by the client when it decodes, so the two cancel out.
Using it as the capture channel map makes PulseAudio reorder the samples as
well, and that second reordering is never undone.

It is invisible with the built-in mappings, which are all identities, so it
went unnoticed until custom surround-params arrived in #2424. A client that
requests its own mapping gets permuted channels: the webOS Moonlight client
asks for 0,1,4,5,2,3 and ends up with centre on rear left, rear left on
centre, LFE on rear right and rear right on the subwoofer.

Capture in the canonical layout instead, which is what the WASAPI and macOS
backends already do by ignoring the mapping argument entirely. Since
map_stereo, map_surround51 and map_surround71 are all the identity over
speaker_e, the canonical position of channel i is position_mapping[i], so
the map is now filled directly from the channel index.

Clients that do not send surroundParams are unaffected: the resulting
pa_channel_map is identical to the current one for every layout in
stream_configs. No other Moonlight client sends surroundParams today;
android, ios, qt, embedded and tizen send only the standard
surroundAudioInfo.

The map construction moves into fill_canonical_channel_map() so it can be
tested without a running PulseAudio server, and position_mapping becomes a
std::array bounded by speaker::MAX_SPEAKERS so the parallel-array
relationship with speaker_e is enforced by the compiler. Out-of-range
channel counts are now rejected rather than read past the end.

Refs: https://github.com/mariotaku/moonlight-tv/issues/575

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-09 15:51:12 -04:00
Raphael Derosso Pereira 899095522a fix(linux): close the DRM render-node fd owned by wl::dmabuf_t (#5764)
Signed-off-by: Raphael Derosso Pereira <raphael@insignis.com.br>
2026-10-09 12:52:40 -04:00
Alex Ford fd45d2dd85 feat(windows): add externally managed audio capture (#5647) 2026-10-09 09:21:47 -04:00
eastginza 31da0d8db9 fix(windows): correct shader selection for sRGB-encoded FP16 framebuffer (Win11 SDR) (#5106) 2026-10-09 00:38:48 -04:00
Dave Lane db1e08d5b7 fix(input): target mouse input at the streamed display (#5739) 2026-10-08 22:54:42 -04:00
neatnoise 3f2e767a7b feat(linux/wlr): enable Vulkan encoding for wlroots capture (#5734) 2026-10-07 12:20:41 -04:00
Conn O'Griofa 5e13eb6799 fix(linux): radv: don't force video_encode on autoprobe (#5849) 2026-10-03 18:16:27 -04:00
Conn O'Griofa efe624ffc7 fix(linux/vaapi): adjust balanced preset; don't try to override default quality (#5847) 2026-10-03 11:12:22 -04:00
bitness dfa9e88497 chore(linux/nvenc): document libavcodec HEVC behavior (#5691) 2026-09-30 22:53:43 -04:00
Eduardo Mozart de Oliveira 820700cbeb fix(api): dynamically reload apps if modified on disk (#5506) 2026-09-29 17:41:26 -04:00
Dave Lane c6969080f7 fix(macos): system tray left click menu (#5830) 2026-09-29 08:56:32 -04:00
neatnoise d41a2a32ca feat(vulkan): add vk_quality config option (#5783) 2026-09-28 23:44:53 -04:00
Dave Lane 2435fb421d fix(input): honor extended keyboard modifier (#5821) 2026-09-28 21:43:24 -04:00
Dave Lane 052b413216 feat(permissions): expose platform access and restart after grants (#5820) 2026-09-28 21:42:59 -04:00
Conn O'Griofa 1222ff62ab fix(linux/portalgrab): don't use TaskPool for xdg_worker thread. (#5822) 2026-09-28 09:35:35 -04:00
Dave Lane 8fc40974c9 feat(macos): add gamepad support using libvirtualhid (#5807) 2026-09-27 16:20:34 -04:00
Dave Lane c69d370c35 fix(input): serialize queued packets per stream (#5818) 2026-09-27 13:53:30 -04:00
Conn O'Griofa e1e6700bbb feat(linux/pipewire): add pts passthrough whitelist, cleanups (#5791) 2026-09-25 16:24:14 -04:00
Conn O'Griofa 55d6c0f878 feat(linux): Portal capture fallback support, misc fixes (#5774) 2026-09-25 14:47:58 -04:00
Dave Lane 3a8dcea0df docs: migrate documentation to Dockle (#5749) 2026-09-20 19:17:45 -04:00
Dave LaneandAndy Grundman 6d4a95955e build(macOS): remove zero-initialization (#5744)
Co-authored-by: Andy Grundman <105828+andygrundman@users.noreply.github.com>
2026-09-17 14:56:47 -04:00
Dave Lane 0daeb0e35b fix(pairing): replace duplicate client certificates (#5737) 2026-09-17 11:23:38 -04:00
Dave Lane d23336dc4d refactor(web-ui): single page application (#5731) 2026-09-16 09:55:20 -04:00
Dave Lane f54f9dfc57 chore(deps): move boost to CPM and bump to 1.92 (#5730) 2026-09-15 20:14:58 -04:00
Dave Lane 1cca880503 fix(flatpak): remove need to prefix commands (#5723) 2026-09-15 08:34:12 -04:00
Conn O'Griofa 7a987eecf1 feat(linux): use privileged EGL worker thread (#5709) 2026-09-14 19:34:24 -04:00
Conn O'Griofa 3745a35930 fix(pipewire): gate variable rate to KWin 5.x.x - 6.7.79 (up to stable 6.7 series) (#5705) 2026-09-13 21:07:25 -04:00
Dave Lane d64016a464 fix(linux): repair privileged DRM worker build (#5706) 2026-09-13 19:34:04 -04:00
c553565b98 Merge commit from fork
Sanitize GUI loader and plugin environment variables before privileged initialization, failing closed when the environment cannot be cleaned.

Retain CAP_SYS_ADMIN only on a dedicated DRM worker, route KMS and CUDA DRM access through it, reject queued work safely during overflow or shutdown, and drop the worker privileges when DRM access is no longer needed.

Add Linux regression coverage for the sanitizer and document the new privileged-worker interfaces.

Co-authored-by: Conn O'Griofa <749000+psyke83@users.noreply.github.com>
Co-authored-by: Kishi <41839133+Kishi85@users.noreply.github.com>
2026-09-13 16:37:49 -04:00
Conn O'Griofa 8c74826f2e fix(pipewire): extend KWin version check to handle 6.8 beta/RC versions (#5704) 2026-09-13 11:51:08 -04:00
Dave Lane fb925302d0 fix(linux): export all Wayland DMA-BUF planes (#5699) 2026-09-13 09:31:45 -04:00
Dave Lane 0aa78e5978 fix(web-ui): add XDG Portal token reset (#5701) 2026-09-13 09:31:10 -04:00
Dave Lane 9124e77f8a fix(network): respect configured bind address (#5700) 2026-09-12 20:35:11 -04:00
Dave Lane 2ebaae37d2 fix(linux): handle NVENC in builds without CUDA (#5698) 2026-09-12 16:30:01 -04:00
Cameron Gutman fbf12d019c fix: missing initializers and incorrect default for native_pen_touch (#5693) 2026-09-12 10:32:04 -04:00
Cameron Gutman 48fca7ab64 fix(nvapi,nvenc): Load ARM64 DLLs on RTX Spark (#5682) 2026-09-10 22:57:13 -04:00
Dave Lane ffd1212170 fix(api): return the final result of pairing (#5680) 2026-09-10 21:57:23 -04:00
bitness 9051ae84c3 fix(av1,hevc): stop av1 probes from clobbering hevc results (#5554) 2026-09-10 18:10:03 -04:00
solidv a903885281 fix(linux/vulkan): use vkGetDeviceQueue2 with FFmpeg 9.0 queue flags (#5675) 2026-09-10 14:59:09 -04:00
Dave Lane f2c9f34d90 fix(deps): fix legacy nvenc presets and bump third-party/build-deps (#5668) 2026-09-10 11:54:52 -04:00
Dave Lane f7e550d4ab feat(config): add gamepad_driver option (#5653) 2026-09-08 19:27:07 -04:00
Conn O'Griofa cb72dffa32 feat(linux/pipewire): add support for unpaced capture when appropriate (#5629) 2026-09-06 18:25:25 -04:00
Dave Lane 73ccd68f3c fix(macOS): enable microphone permission flow (#5621) 2026-09-06 08:37:08 -04:00
Dave Lane 71189aecc1 chore(deps): bump libvirtualhid (#5585) 2026-09-05 21:44:54 -04:00
Dave Lane aa92000dc6 refactor: pairing flow, pairing tests, and inline struct comments (#5602) 2026-09-03 08:51:02 -04:00
Dave Lane 41c25716cb build(Windows): resolve system Node.js package (#5599) 2026-09-02 22:06:49 -04:00
Dave Lane 4d768847fc Merge commit from fork 2026-09-02 20:33:20 -04:00
Dave Lane 82bccdf698 Merge commit from fork 2026-09-02 20:08:24 -04:00
Dave Lane ccf97e3879 Merge commit from fork 2026-09-02 19:48:25 -04:00
Dave Lane 1583e7c4a7 Merge commit from fork 2026-09-02 19:44:39 -04:00