Skip to content

fix(audio): ceiling speakers sit at TS 103 448's panner targets - #742

Merged
superuser404notfound merged 3 commits into
superuser404notfound:mainfrom
kristofferR:fix/spatial-ceiling-positions
Oct 13, 2026
Merged

superuser404notfound merged 3 commits into
superuser404notfound:mainfrom
kristofferR:fix/spatial-ceiling-positions

Conversation

@kristofferR

Copy link
Copy Markdown
Contributor

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

  • The ceiling speakers now sit a quarter of the room in from each wall (TS 103 448 table A.5): (0.25 or 0.75, 0.25 / 0.5 / 0.75, 1). The top-front-centre bed channel moves with them, to (0.5, 0.25, 1).
  • The panner is unchanged. Its constant-power balance per axis is already the one TS 103 448 specifies; only the targets were off.
  • An object on the ceiling a third of the way back now puts 7% of its power in the rear tops instead of 25%. An object out at a wall or corner still plays from the nearest top.
  • Tests pin the inset targets and the TFC mapping. formats.md and CHANGELOG.md are 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:

    Clip Direction Elevation bias Top share
    Black Hawk Down 3.32° → 0.81° +3.18° → +0.36° +4.10 → +0.57 points
    Helicopter (one overhead object) 6.30° → 0.23° +3.14° → −0.09° 0 → 0
    Amaze 4.70° → 3.34° +2.03° → −0.24° +1.00 → −0.11
    Encanto 1.36° → 0.74° +1.11° → +0.33° +1.45 → +0.43
    Nature's Fury 2.08° → 1.70° +0.01° → −0.38° −0.31 → −0.46
    Sinners 0.44° → 0.33° +0.26° → +0.13° +0.36 → +0.17
    Ford v Ferrari 0.15° → 0.15° 0 → 0 0 → 0

    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.md updated
  • Commit messages follow Conventional Commits (feat(...), fix(...), chore(...))
  • The fix lives in the engine, not in a host-side workaround
  • Public API changes are intentional and documented (none)

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.
@superuser404notfound
superuser404notfound merged commit 8657a25 into superuser404notfound:main Oct 13, 2026
4 checks passed
@superuser404notfound

Copy link
Copy Markdown
Owner

Merged as 8657a252, thank you. Checked the targets against the text of TS 103 448 V1.1.1: Tfl/Tfr/Tbl/Tbr match table A.5, Tl/Tr and Tsl/Tsr tables A.6 and A.9, Tfc table A.9. main had moved under the branch, so I merged it in (a16e5118): the CHANGELOG entry sits under Unreleased › Fixed next to #735, and the formats.md sentence went into the paragraph that now also carries the #741 hold. The spatial, TrueHD, object audio and docs suites pass on both runners, and CI is green.

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.

ijuniorfu pushed a commit to ijuniorfu/AetherEngine that referenced this pull request Oct 13, 2026
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
superuser404notfound pushed a commit that referenced this pull request Oct 13, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants