Windows port Phase 0: platform-select the audio backend #2
Open
mollusk
wants to merge 1 commits from
windows-port-phase0 into ci-cargo-deny
pull from: windows-port-phase0
merge into: :ci-cargo-deny
:main
:codex-win-audio-probe
:s2-host-fault
:phase-0b-teardown
:phase1-ownership-tagging
:connection-transparency
:screenshare-advanced-controls
:codex-a6-playback-handoff
:codex-0.6.2-refinements
:codex-playlist-drawer-ui
:w22-music-phase1
:w22-image-lightbox
:release/0.5.1
:feat/clip-volume
:codex-presence-ratelimit-QUARANTINE
:codex-inline-audio-player
:codex-w16-settings-ui
:codex-wishlist-ayu-themes
:w16-custom-backgrounds
:reconnect-resilience
:windows-port-phase2
:windows-port-phase1
:windows-port-phase0
:ci-cargo-deny
:codex-security-s8-audio-membership
:codex-security-s11-presence-discovery
:codex-security-hardening
:codex-home-empty-state-ui
:codex-settings-category-nav
:codex-security-s9
:codex-wishlist-audio-hotkeys
1
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
85b12a26c9 |
Windows port Phase 0: platform-select the audio backend
Make the tree compile for Windows without touching core logic, by confining all Linux/PipeWire assumptions behind cfg gates and a single platform-selected backend alias. No new dependencies — the cpal/WASAPI backend lands in Phase 1; this ships a no-op stub. - Cargo.toml: move pipewire + rfd(xdg-portal) under cfg(unix); add a cfg(windows) rfd using the Win32 dialog backend. - audio: gate pipewire_impl to unix, add a cpal_impl stub for windows, and select between them via the new PlatformAudioBackend alias. - core: use PlatformAudioBackend instead of the concrete PipeWireBackend. - lib: gate the unix-only 0o600 log-file mode code (+ its test); Windows logs inherit the directory ACL. - audio_probe: gate this PipeWire diagnostic to unix with a stub main. - app: open URLs via rundll32 on windows, xdg-open on unix (shell-free). - ci: add .gitea/workflows/windows-build.yml (M1) — build + lib tests for x86_64-pc-windows-msvc, with CMAKE_POLICY_VERSION_MINIMUM=3.5 for the vendored libopus build. Needs a windows act_runner to actually run. Linux build/clippy/tests green (316/316). The Windows path is verified by inspection only (no local Windows toolchain); CI is the real gate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |