Skip to content

facade: isolate CoreAudio encoder platform policy - #1607

Merged
zackees merged 3 commits into
masterfrom
infra/856-coreaudio-platform
Oct 21, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/856-coreaudio-platform

Conversation

@zackees

@zackees zackees commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #856. Isolate CoreAudio SDK types/deleters, optional Windows loading and status description behind a host facade. Per-host unity groups keep the shared encoder and host helper in one translation unit, preserving one Windows static import/function-pointer table. The existing imports implementation is byte-unchanged.

The shared encoder and PCH contain no OS selection. Six OS selections moved; the existing three compiler-only conditions (format attribute plus MSVC warning push/pop) remain documented, as the issue explicitly permits. No warning is newly disabled. The ratchet baseline drops its two existing PCH findings; the encoder was already classified as a Windows/macOS module, so its host branches were not separate baseline entries. Focused checks enforce the new shared boundary and retain exactly the three compiler guards.

RED → GREEN

  • RED 997da9c: original host status/ownership/load behavior passes; shared boundary and missing per-host group checks fail.
  • Additional RED 00acbf5: five incorrect CI path selections reproduce the CoreAudio filename ambiguity. Windows paths selected macOS or both hosts; shared API/PCH selected only macOS.
  • GREEN 67dc883: private host helpers/types selected by CMake; narrow path entries route Windows helpers/group only to Windows, macOS files only to macOS, and shared API/PCH to both. No global classifier rule changes.

Preserved behavior

  • Windows missing CoreAudio DLLs remains a soft module success without encoder registration; warning/info text and severity remain unchanged. Loaded function pointers are shared with converter disposal and are cleared by unload.
  • macOS native CF descriptions and numeric/name fallback retain their string results and release both CF objects exactly once.
  • The optional obs_module_unload export remains Windows-only; macOS gains no unload entry point.
  • Encoder registration/callback assignments, encoding code and Windows imports are unchanged. No user-visible behavior, public C API/header, existing C test, new workflow or WebSocket gitlink change.

Verification

All 87 focused platform/group/ratchet/scope tests pass. Actual-source compiler fixtures cover known/unknown positive/negative status codes, CF conversion success/failure and resource release, optional loader success/failure, log text/severity, registration and shared-pointer disposal/unload. Nine CI path cases check host and shared routing. Pinned formatting and whitespace checks pass.

Full native validation 39556491770 dispatched on GREEN. Native Windows/macOS app/plugin builds and PR CI passed; all native full-run tests passed. Flatpak also passed; the complete full workflow succeeded. Runtime Apple DLL availability/actual AAC encoding is not claimed as tested by the mocked loader fixture; native plugin builds are required separately.

No Rust port or protocol change is involved, so Rust port/protocol tiers do not apply. Native plugin checks and normal merge queue remain required.

Native plugin evidence

  • macOS ARM64 job 119077468100 explicitly compiles coreaudio-encoder.macos, links the plugin and produces coreaudio-encoder.plugin.
  • Windows x64 job 119077467987 explicitly compiles coreaudio-encoder.windows, produces coreaudio-encoder.dll and installs it.
  • PR CI 39556498352 passed. Windows ARM64 also passed; Flatpak also passed; complete full run 39556491770 succeeded.

@zackees
zackees marked this pull request as ready for review October 21, 2026 06:52
@zackees
zackees added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit f3030da Oct 21, 2026
54 checks passed
zackees added a commit that referenced this pull request Oct 23, 2026
…REEN, #1294)

#1607 split coreaudio-encoder.core+ into .windows+/.macos+ and moved its
platform types under hosts/<os>/; decklink-platform.hpp moved the same way.
The cross check still named the old group and lacked the hosts/ include
paths, so win-x64 failed at configure and mac-arm64 failed in decklink.
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 23, 2026
…urces exist (obs-rust#1294) (obs-rust#1967)

* ci: check that every source cmake/cross names exists (RED, obs-rust#1294)

* cmake/cross: follow the coreaudio-encoder and decklink host splits (GREEN, obs-rust#1294)

obs-rust#1607 split coreaudio-encoder.core+ into .windows+/.macos+ and moved its
platform types under hosts/<os>/; decklink-platform.hpp moved the same way.
The cross check still named the old group and lacked the hosts/ include
paths, so win-x64 failed at configure and mac-arm64 failed in decklink.
@zackees
zackees deleted the infra/856-coreaudio-platform branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

facade: plugins/coreaudio-encoder: move 9 platform conditionals behind a per-platform layer

1 participant