Repository navigation
fix(audio): ceiling speakers sit at TS 103 448's panner targets - #742
Conversation
The renderer placed the top speakers in the room's corners, so overhead content near the front leaked into the rear tops and the mix sat higher than Apple's own Atmos render. They now sit a quarter of the room in from each wall, as ETSI TS 103 448 places them, and the top front centre bed channel moves to its target with them.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
8657a25
into
superuser404notfound:main
|
Merged as One thing found on the way, not part of this PR: table A.3 puts the 3/2/x surrounds at (0 or 1, 0.5, 0), while the engine still places a 5.1 bed's surrounds in the rear corners. A follow-up PR for that is coming; if you can run it through the same comparison against Apple's render, that would be the measurement it is missing. |
Table A.3 places the 3/2 surrounds halfway down the side walls, (0 or 1, 0.5, 0), where a 7.1 bed has its sides. The renderer still had them in the rear corners, so an object on the side wall halfway back played half from the front on 5.1.2 and 5.1.4. Table 4 also excludes nothing for the no-back and no-sides masks on a 3/2 floor, so those masks no longer take the 5.1 surrounds away; screen-only still does. Follow-up to superuser404notfound#742. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
Review follow-ups on #755: - On a resume the verdict peeked the file head, and step 8's seek then dropped those packets: one wasted range read per start onto any 48 kHz DTS-HD MA track. The demuxer is now put at the first producer's start before the peek (`seekToInitialProducerStart`, step 8's seek moved into a helper), and step 8 skips its seek when that already happened, so the peeked packets are the producer's first ones. LibDTSX decides mid-stream as well (aetherctl serve --start-position 40: verdict 1 ms, audio gate gapMs=0.0; plain DTS-HD MA refused at 8 s, channel bridge opens on target). - The peek holds every stream's packets until the producer reads them, so it is capped at 24 MiB as well as 512 packets. - A stream that decodes at a rate other than 48 kHz is refused on its first block instead of failing every block in the bridge. - TFC sits on the front-top row (0.5, 0.25, 1) as in the TrueHD map since #742; LSD/RSD map to the side speakers like TrueHD's. - Docs: the angular figures were measured before #742, the 21 ms after a start or seek are skipped rather than filled with silence, the 1200-packet silence report is 12.8 s of DTS, and the OS < 26 pick change for TrueHD Atmos gets a Changed line. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
Summary
The object renderer places the four ceiling speakers in the room's corners (x and y at 0 and 1). Overhead content near the front leaks into the rear tops, and the whole mix sits higher than Apple's own Atmos render of the same title: on Black Hawk Down the heights got 4.1 points more energy, and the image sat 3.2° higher. This moves the ceiling speakers to the panner targets ETSI TS 103 448 gives them.
Ref #731
What changed
formats.mdandCHANGELOG.mdare updated.Test plan
Device / OS: M-series Mac, macOS 27, through the engine's own decoder and renderer. A temporary test harness, not committed, rendered each clip's TrueHD to 7.1.4.
Source media: TrueHD Atmos elementary streams of three Dolby demos (Amaze, Helicopter, Nature's Fury) and four film excerpts. The reference was Apple's render of each clip's matching DD+ Atmos encode, captured on macOS.
Result: energy-weighted errors against Apple's render, before → after:
The new renders match an independent TS 103 448 renderer (SpatialAudioBridge) to within 0.01° on every clip.
swift test --filter "SpatialObjectRenderingTests|TrueHDObjectMetadataMapping|DocumentedConstants|PublicAPIDocumentation|SpatialAudioBridgeTests"passes.This is one of three independent TrueHD Atmos fixes. Each adds an entry under Unreleased › Fixed in
CHANGELOG.md, so whichever merges second needs a one-line rebase there.Checklist
CHANGELOG.mdupdatedfeat(...),fix(...),chore(...))