Repository navigation
feat(audio): put LibTrueHD and LibDTSX behind package traits - #777
Merged
superuser404notfound merged 1 commit intoOct 15, 2026
Merged
superuser404notfound merged 1 commit into
superuser404notfound merged 1 commit into
Conversation
Each object-audio decoder library is now behind a trait of its own, TrueHDObjectAudio and DTSXObjectAudio, both on by default, so a host that does nothing keeps today's build. A host that cannot ship one of them turns its trait off: the library is then neither linked nor resolved, and its codec keeps the channel bridge whatever objectAudioRendering asks, with the reason in the session log. The manifest moves to swift-tools-version 6.1, which traits need; CI also builds with both traits off.
williamliu0516
force-pushed
the
feat/truehd-trait
branch
from
October 15, 2026 00:32
5290c2c to
e725deb
Compare
superuser404notfound
pushed a commit
that referenced
this pull request
Oct 15, 2026
…for (#777) With a trait off, TrueHD Atmos or DTS:X still won the automatic pick within its language, and then played through the channel bridge like any other track. The pick now ranks a codec only when its decoder is linked. The ranking tests run only with their trait, plus one that runs without. Also: the README trait example names 7.37.0 (7.36.0 has no traits), and CI builds the tests with the traits off, not just the library. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
Owner
|
Thanks for this, William. Clean change, and the test plan covered exactly the cases that matter. Merged as 962fd0a. Verified on the merge with main (Xcode 27, macOS 27): the full suite passes with the default traits, and Three small things followed in fec79e1:
This goes out with the next release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
LibTrueHD and LibDTSX are now optional, behind two package traits:
TrueHDObjectAudioandDTSXObjectAudio. Both are on by default, so nothing changes for existing hosts.Why
Both libraries only serve
objectAudioRendering, yet they are always linked, and some apps can't shipthem. With a trait off, the library is neither linked nor fetched, and that codec uses the channel bridge:
Traits need swift-tools-version 6.1. Xcode 27 applies them only to remote package references.
Test plan
Mac Studio, macOS 27, Xcode 27.0:
swift testpass with and without the traits (one LAN test fails the same way on unmodifiedmainhere).--atmos-bed 7.1.4: traits on, APAC as before; off, the channel bridge.traits: []fetches and links neither library, and plays the same file through the E-AC-3bridge.