You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exactly as diagnosed, and the reason it took the whole session down rather than just the encoder: AudioBridge.init copied sample_rate straight out of the source codecpar into the encoder context. E-AC-3 has 32, 44.1 and 48 kHz and nothing else, so avcodec_open2 returned EINVAL with libavcodec printing its own list, the route logged AudioBridge init failed and fell to silent video-only. 192 kHz would have done the same.
The #165 cascade could not rescue it either, which is worth noting because that is the mechanism that exists for exactly this outcome: it retries the other encoder when the resolved one is absent from the build, and stops on any other init failure on the grounds that a re-attempt is pointless. Here the encoder was present and simply refusing the configuration, so it stopped after one attempt.
The rate now comes from the encoder itself via avcodec_get_supported_config, rather than from a table here that no FFmpeg bump would update: exact match kept, above the list the highest supported rate wins (96 and 192 land on 48), below it the lowest so an 8 kHz oddity still plays, and an encoder that advertises no list at all keeps the source rate untouched. That last part is what matters for .lossless: FLAC advertises no restriction, so 96 kHz stays 96 kHz and stays bit-perfect. swr was already sitting between decoder and encoder on every bridged packet and already configured from the encoder's rate, so the conversion costs nothing that was not already being paid, and the init line now names the source rate whenever the two differ.
On FLAC as the default for iOS and macOS: that one is a host decision rather than an engine one (LoadOptions.audioBridgeMode), and the argument for it is real, since a phone or a Mac is usually driving headphones or built-in speakers where the E-AC-3 bitstream is decoded locally anyway and FLAC would be lossless instead of 128 kbps per channel. Two things pulling the other way: both of those platforms do reach HDMI and AVRs through adapters, docks and AirPlay, which is the install base .surroundCompat exists for, and on a route that can only pass a Dolby bitstream through rather than decode it, multichannel LPCM is what gets downmixed. Worth noting that Spatial Audio is not a factor either way: AirPods spatialise the decoded multichannel PCM, so FLAC 5.1 gets the same treatment as bridged E-AC-3 5.1, and real Atmos objects survive neither mode regardless (they only live on the stream-copy path). Still thinking about where the default should land.
On tvOS 26 (later builds I think) with the new enabled-by-default “continuous audio connection” setting, the Apple TV defaults to Dolby MAT instead of LPCM. This bypasses the LPCM channel limit on many devices.
Both the Philips and Samsung I have support multichannel Dolby MAT (verified in EDID).
Ironically, I disable that setting because it causes audio sync issues (lots of people online having same issue). eac3 bridge works better for me on the Apple TV (for now at least)
7.4.1's release note closes its Verified section with "Not verified on hardware: no 96 kHz TrueHD source was available here, so the reporter's retest is what closes the issue." Here is a hardware retest, from a third party rather than the reporter, on a different platform and a different source codec — with the pre-fix arm run on the same box the same evening, so the before/after is a measurement rather than an impression.
Three pins, each figure labelled with its own, each proven by our own build gate rather than asserted: 7.1.3 (13a86172), 7.7.1 (fa67d586) and 7.8.1 (b89240af). Office2, Apple TV 4K (3rd gen) (AppleTV14,1), tvOS 26.6 (23L773) — the OS string is in each leg's own slice as AppleCoreMedia/1.0.0.23L773 … CPU OS 26_6, not carried over from one report. Built with Xcode 27.0 (27A266a) / Swift 6.4, read on this Mac on both build days. Same deep link, same title, same position (;t=30) at every pin; the only rig is our own JF_AETHER_AUDIO_BRIDGE=surroundCompat, which pins the bridge mode for the launch. Seven releases have shipped above our newest pin (7.9.0 → 7.14.0, published between 2026-09-20 and 2026-09-22); no figure below is from any of them, and What we cannot say below says why that does not date the reading, and names the one change among them that sits under this path. Prefixes trimmed, tails and inner clauses elided (…); the rest verbatim. Bare :N are lines in the named log.
The source.Arbitrage (2012), mkv, from our server's own metadata: video hevc Main 1920x1040 SDR 10-bit, audio index 1 dts, profile DTS-HD HRA, 96000 Hz, 6 ch, 5.1, 1,509 kbps, default track, 106.7 min. Not TrueHD — see What we cannot say below for why, and for what we could run instead.
DEV-E8-ctrl-bridge-96k-compat.log:83-90, :103. The served master then carries video and nothing else — CODECS="hvc1.1.6.L186.b0", no AUDIO attribute (:216) — and AVPlayer never reports an audio track at all: item.audioTrack is 0 lines in the whole slice, against exactly one in each of the four post-fix legs.
Three things in that sitting are worth a sentence each.
The bridge was opened three times, not once (:83, :183, :313), and refused identically each time — and all three opens are ours, not retries the engine made. The second follows our own dropped-audio rescue restart (:107 → :183); the third follows our host seeing the engine's active audio back at nil and asking for the track again (:256first-frame audio: engine active id=nil (requested 1) → :269[Aether] audio switch → id 1 (engine pipeline restart) → :272reload begin: audioStream=1 resumeAt=29.40s … → :313). The engine's media-playlist fallback that sits between them (:241 → :242#3 load …/media.m3u8 startPos=30.00s headers=none) opened no bridge — zero [AudioBridge] init: lines anywhere in 242..312. Each of the three attempts logged exactly one Specified sample rate … and one AudioBridge init failed (:84/:184/:314 and :89/:189/:319), which is the #165 stop-after-one you describe, observed three times over. Nothing here is a cascade report.
That rescue path, for completeness, ran and did not land.:107audio delivery: DROPPED — re-serving through the server with converted audio (#462, owner decision 2): item … track 1 tore the first session down (:115onVODSourceFailed dropped: session superseded or deallocated, :118asset.load(duration) failed: NSURLErrorDomain/-1004 …), the negotiation re-ran and answered the same plan (:129play Arbitrage — Direct Play · Aether [aether]), and :127 records the outcome: audio re-serve did NOT land — the negotiation still answers Direct Play · Aether (a fail-closed gate stood the conversion down) …. That gate is ours, and it closed on the file's declared video level — nothing to do with audio — so no part of that limb is a reading about the engine.
And the session did not stop at silent video-only on this host — it ended at :369 in ERROR Aether error: Cannot Open | … | native: AVFoundationErrorDomain#-11848 Cannot Open — Arbitrage [vod], an error card, with no playback at all. ⚠️That -11848 is not caused by the missing audio and is not a pin difference: it fires in all five legs, including both post-fix arms whose master carries an audio group, where the in-place media fallback then reaches readyToPlay and the sitting plays on. We are not asking about it here.
After — 7.7.1 and 7.8.1, both bridge arms
.surroundCompat, the arm that failed. The rate is resolved from the encoder and the init line names the source rate, exactly as the note says:
DEV-E8-bridge-96k-compat.log:82, :96, :206, :208, :239 at 7.7.1; the same five lines at :81, :94, :194, :196, :227 at 7.8.1, 09-21 20:54:52.246 onward. 5.1 in, 5.1 E-AC-3 out at 48 kHz, and the route settling at six output channels on the HDMI port. Zero Specified sample rate lines, zero AudioBridge init failed, zero droppedNoPipeline, zero ERROR in all four legs.
.lossless, unforced — the claim that FLAC keeps the source rate, carried to the end of the chain. Our host picks the mode from the route, and this route advertises 32 channels, so this is what a viewer on it actually gets:
DEV-E8-bridge-96k-auto.log:28, :81, :166, :199 at 7.7.1, and :28, :81, :196, :225 at 7.8.1. No (resampled from …) clause, because there is nothing to resample — 96 kHz in, 96 kHz out, six channels, and the route settling at six output channels on the HDMI port. We claim the rate only: DTS-HD HRA is a lossy master, so the FLAC encode is lossless relative to the decoded PCM, not relative to an original.
Two further instances of the same FLAC-at-96 kHz result on the same title, from unrelated seek legs on 2026-09-21: DEV-E8-n4-arbitrage-p771.log:83 at 7.7.1 and DEV-E8-n4-arbitrage-p781.log:82 at 7.8.1.
What we cannot say
Not 192 kHz. We swept our library read-only on 2026-09-19 — 108,216 audio streams across 89,128 items — and the whole above-48 kHz population is ten streams at 96 kHz plus one 51,200 Hz AC-4 clip. There is no 192 kHz stream, and no 88.2 or 176.4 kHz stream either. So the upper half of this defect is untestable here at any pin, and we make no claim about it. For whatever the prevalence figure is worth to you: ten of 108,216, of which five are in a requiresBridge codec.
Not TrueHD — and the reason is a fixture trap worth recording for anyone who does attempt that retest. At 7.1.3 the bridge took srcCodecpar.pointee.sample_rate > 0 ? … : 48000 (AudioBridge.swift:266-268 at tag 7.1.3), and the doc comment above it (:205-206) says "TrueHD sometimes reports sample_rate=0 pre-frame". If the demuxer hands the bridge a 0 for a TrueHD track, the old code opened the encoder at 48 kHz and never met the defect — so a TrueHD leg can pass at the old pin without exercising anything, and a "before" arm that passes proves nothing. Our DTS-HD source's codecpar carried the rate — the 7.1.3 init line above reads sampleRate=96000 — which is what makes our before arm a real before arm, and is why the fixture is DTS-HD. We do hold three 96 kHz TrueHD titles (two 5.1, one 7.1, all default tracks). If a TrueHD arm is worth having, say so and we will run the same A/B on one.
Not tested above 7.8.1. Our two post-fix pins are 7.7.1 and 7.8.1. The one thing that keeps this reading current: AudioBridge.swift is the same blob at 7.8.1, 7.9.0, 7.10.0, 7.10.1, 7.11.0, 7.12.0, 7.13.0 and 7.14.0, and the rate path is byte-identical all the way back to the fix — supportedSampleRates(for:) at :88, encoderSampleRate(supported:source:) at :108, the call site at :369 and the (resampled from …) clause at :385 sit at the same lines with the same content at 7.4.1, 7.7.1, 7.8.1, 7.11.0, 7.12.0, 7.13.0 and 7.14.0. The file's only change across that whole span is the 15-line AE#561 initial_padding offset, which is not on this path. One of the seven does move something under this path, below the Swift: 7.14.0 takes FFmpegBuild 3.5.0 (FFmpeg n8.1.3) where all three of our pins are on n8.1.2, and supportedSampleRates(for:) asks that libavcodec for the E-AC-3 rate list at run time, so a 7.14.0 retest would open an encoder build none of ours did — we have not run one, and what we can add is a rate-path reading of the n8.1.2...n8.1.3 diff rather than a leg: eac3enc.c, ac3enc.c, ac3tab.c (the 48 / 44.1 / 32 kHz table), avcodec.c, flacenc.c and dcadec.c are the same blobs at both tags, and its one libswresample code change is an aarch64 float-to-S16 conversion that neither arm here asks for (E-AC-3 takes FLTP at AudioBridge.swift:344 and a DTS source's FLAC takes S32 at AudioBridge.swift:348, at 7.4.1 through 7.14.0).
One data point on the default question, offered as a data point
You wrote that FLAC-as-default for iOS and macOS is a host decision and that both platforms still reach HDMI and AVRs through adapters, docks and AirPlay. Our host resolves the mode per session from the route's advertised maximumOutputNumberOfChannels rather than from a platform default: six or more channels advertised takes .lossless, fewer takes .surroundCompat. The measured consequence is in this thread's own subject matter: this route advertises 32 (audioRoute … max=32 in each of the four post-fix legs above), so an unforced session on it resolves to .lossless and never opens the E-AC-3 encoder at all — which is why reproducing this defect here needed the rig, and why the five 96 kHz requiresBridge titles in our library take the FLAC arm on this route. That is a third answer to "where should the default land", and it has one known soft spot we have not been able to test: a sink that over-advertises would get multichannel LPCM it then downmixes, and we have no such sink on the bench. Offered because you asked the question, not as a recommendation.
Nothing needed from you on our account — this is the hardware half of the note, and the issue looks closeable from where we sit.
@DrHurt, good to have it confirmed on the original file with the E-AC-3 bridge.
@cmcpherson274, thank you for the hardware half. The before arm is what makes it worth having: a 7.1.3 leg that reproduces the EINVAL on a source whose codecpar actually carries 96 kHz, next to the 48 kHz resample on .surroundCompat and 96 kHz kept on .lossless. The TrueHD sample_rate=0 point is a fair warning for anyone attempting that retest, and no TrueHD arm is needed on my side, the rate path is codec-agnostic and your DTS-HD leg exercised exactly the branch that failed.
On resolving the mode from maximumOutputNumberOfChannels: the soft spot you name is one I have measured, on a Sonos behind an Apple TV with continuous audio connection off (#24). The route advertised maxChannels=32 while the active route sat at ch=2, so six-channel PCM was folded to stereo, and no AVAudioSession call moved it off two. On that box the advertised maximum describes what the sink could do, not what the link is doing. So the default stays the setting it is now, .surroundCompat unless the host or user picks otherwise.
Activity
DrHurt commentedon Sep 18, 2026
Might be worth considering FLAC as default on iOS & macOS as those devices will rarely connect to HDMI audio systems.
Merge fix/548-bridge-sample-rate: the bridge encoder opens at a rate …
superuser404notfound commentedon Sep 18, 2026
Fixed in 7.4.1 (
452c7d6).Exactly as diagnosed, and the reason it took the whole session down rather than just the encoder:
AudioBridge.initcopiedsample_ratestraight out of the source codecpar into the encoder context. E-AC-3 has 32, 44.1 and 48 kHz and nothing else, soavcodec_open2returned EINVAL with libavcodec printing its own list, the route loggedAudioBridge init failedand fell to silent video-only. 192 kHz would have done the same.The #165 cascade could not rescue it either, which is worth noting because that is the mechanism that exists for exactly this outcome: it retries the other encoder when the resolved one is absent from the build, and stops on any other init failure on the grounds that a re-attempt is pointless. Here the encoder was present and simply refusing the configuration, so it stopped after one attempt.
The rate now comes from the encoder itself via
avcodec_get_supported_config, rather than from a table here that no FFmpeg bump would update: exact match kept, above the list the highest supported rate wins (96 and 192 land on 48), below it the lowest so an 8 kHz oddity still plays, and an encoder that advertises no list at all keeps the source rate untouched. That last part is what matters for.lossless: FLAC advertises no restriction, so 96 kHz stays 96 kHz and stays bit-perfect. swr was already sitting between decoder and encoder on every bridged packet and already configured from the encoder's rate, so the conversion costs nothing that was not already being paid, and the init line now names the source rate whenever the two differ.On FLAC as the default for iOS and macOS: that one is a host decision rather than an engine one (
LoadOptions.audioBridgeMode), and the argument for it is real, since a phone or a Mac is usually driving headphones or built-in speakers where the E-AC-3 bitstream is decoded locally anyway and FLAC would be lossless instead of 128 kbps per channel. Two things pulling the other way: both of those platforms do reach HDMI and AVRs through adapters, docks and AirPlay, which is the install base.surroundCompatexists for, and on a route that can only pass a Dolby bitstream through rather than decode it, multichannel LPCM is what gets downmixed. Worth noting that Spatial Audio is not a factor either way: AirPods spatialise the decoded multichannel PCM, so FLAC 5.1 gets the same treatment as bridged E-AC-3 5.1, and real Atmos objects survive neither mode regardless (they only live on the stream-copy path). Still thinking about where the default should land.DrHurt commentedon Sep 18, 2026
That was very quick!
I’m sure AetherPlayer will eventually get a settings section to control everything including bridge mode.
FLAC vs eac3 makes very little difference to be fair so I’m personally not bothered either way. As always I’m just thinking out loud.
Feel free to close this now if you want.
DrHurt commentedon Sep 18, 2026
Additional data point for documentation:
On tvOS 26 (later builds I think) with the new enabled-by-default “continuous audio connection” setting, the Apple TV defaults to Dolby MAT instead of LPCM. This bypasses the LPCM channel limit on many devices.
Both the Philips and Samsung I have support multichannel Dolby MAT (verified in EDID).
Ironically, I disable that setting because it causes audio sync issues (lots of people online having same issue). eac3 bridge works better for me on the Apple TV (for now at least)
fix(audio): the bridge encoder opens at a rate it has, not at the sou…
cmcpherson274 commentedon Sep 23, 2026
7.4.1's release note closes its
Verifiedsection with "Not verified on hardware: no 96 kHz TrueHD source was available here, so the reporter's retest is what closes the issue." Here is a hardware retest, from a third party rather than the reporter, on a different platform and a different source codec — with the pre-fix arm run on the same box the same evening, so the before/after is a measurement rather than an impression.Three pins, each figure labelled with its own, each proven by our own build gate rather than asserted: 7.1.3 (
13a86172), 7.7.1 (fa67d586) and 7.8.1 (b89240af). Office2, Apple TV 4K (3rd gen) (AppleTV14,1), tvOS 26.6 (23L773) — the OS string is in each leg's own slice asAppleCoreMedia/1.0.0.23L773 … CPU OS 26_6, not carried over from one report. Built with Xcode 27.0 (27A266a) / Swift 6.4, read on this Mac on both build days. Same deep link, same title, same position (;t=30) at every pin; the only rig is our ownJF_AETHER_AUDIO_BRIDGE=surroundCompat, which pins the bridge mode for the launch. Seven releases have shipped above our newest pin (7.9.0 → 7.14.0, published between 2026-09-20 and 2026-09-22); no figure below is from any of them, and What we cannot say below says why that does not date the reading, and names the one change among them that sits under this path. Prefixes trimmed, tails and inner clauses elided (…); the rest verbatim. Bare:Nare lines in the named log.The source. Arbitrage (2012), mkv, from our server's own metadata: video
hevc Main 1920x1040 SDR 10-bit, audio index 1dts, profile DTS-HD HRA, 96000 Hz, 6 ch, 5.1, 1,509 kbps, default track, 106.7 min. Not TrueHD — see What we cannot say below for why, and for what we could run instead.Before — 7.1.3, the reported failure verbatim
DEV-E8-ctrl-bridge-96k-compat.log:83-90,:103. The served master then carries video and nothing else —CODECS="hvc1.1.6.L186.b0", noAUDIOattribute (:216) — and AVPlayer never reports an audio track at all:item.audioTrackis 0 lines in the whole slice, against exactly one in each of the four post-fix legs.Three things in that sitting are worth a sentence each.
The bridge was opened three times, not once (
:83,:183,:313), and refused identically each time — and all three opens are ours, not retries the engine made. The second follows our own dropped-audio rescue restart (:107→:183); the third follows our host seeing the engine's active audio back atniland asking for the track again (:256first-frame audio: engine active id=nil (requested 1)→:269[Aether] audio switch → id 1 (engine pipeline restart)→:272reload begin: audioStream=1 resumeAt=29.40s …→:313). The engine's media-playlist fallback that sits between them (:241→:242#3 load …/media.m3u8 startPos=30.00s headers=none) opened no bridge — zero[AudioBridge] init:lines anywhere in242..312. Each of the three attempts logged exactly oneSpecified sample rate …and oneAudioBridge init failed(:84/:184/:314and:89/:189/:319), which is the #165 stop-after-one you describe, observed three times over. Nothing here is a cascade report.That rescue path, for completeness, ran and did not land.
:107audio delivery: DROPPED — re-serving through the server with converted audio (#462, owner decision 2): item … track 1tore the first session down (:115onVODSourceFailed dropped: session superseded or deallocated,:118asset.load(duration) failed: NSURLErrorDomain/-1004 …), the negotiation re-ran and answered the same plan (:129play Arbitrage — Direct Play · Aether [aether]), and:127records the outcome:audio re-serve did NOT land — the negotiation still answers Direct Play · Aether (a fail-closed gate stood the conversion down) …. That gate is ours, and it closed on the file's declared video level — nothing to do with audio — so no part of that limb is a reading about the engine.And the session did not stop at silent video-only on this host — it ended at⚠️ That
:369inERROR Aether error: Cannot Open | … | native: AVFoundationErrorDomain#-11848 Cannot Open — Arbitrage [vod], an error card, with no playback at all.-11848is not caused by the missing audio and is not a pin difference: it fires in all five legs, including both post-fix arms whose master carries an audio group, where the in-place media fallback then reachesreadyToPlayand the sitting plays on. We are not asking about it here.After — 7.7.1 and 7.8.1, both bridge arms
.surroundCompat, the arm that failed. The rate is resolved from the encoder and the init line names the source rate, exactly as the note says:DEV-E8-bridge-96k-compat.log:82,:96,:206,:208,:239at 7.7.1; the same five lines at:81,:94,:194,:196,:227at 7.8.1,09-21 20:54:52.246onward. 5.1 in, 5.1 E-AC-3 out at 48 kHz, and the route settling at six output channels on the HDMI port. ZeroSpecified sample ratelines, zeroAudioBridge init failed, zerodroppedNoPipeline, zero ERROR in all four legs..lossless, unforced — the claim that FLAC keeps the source rate, carried to the end of the chain. Our host picks the mode from the route, and this route advertises 32 channels, so this is what a viewer on it actually gets:DEV-E8-bridge-96k-auto.log:28,:81,:166,:199at 7.7.1, and:28,:81,:196,:225at 7.8.1. No(resampled from …)clause, because there is nothing to resample — 96 kHz in, 96 kHz out, six channels, and the route settling at six output channels on the HDMI port. We claim the rate only: DTS-HD HRA is a lossy master, so the FLAC encode is lossless relative to the decoded PCM, not relative to an original.Two further instances of the same FLAC-at-96 kHz result on the same title, from unrelated seek legs on 2026-09-21:
DEV-E8-n4-arbitrage-p771.log:83at 7.7.1 andDEV-E8-n4-arbitrage-p781.log:82at 7.8.1.What we cannot say
Not 192 kHz. We swept our library read-only on 2026-09-19 — 108,216 audio streams across 89,128 items — and the whole above-48 kHz population is ten streams at 96 kHz plus one 51,200 Hz AC-4 clip. There is no 192 kHz stream, and no 88.2 or 176.4 kHz stream either. So the upper half of this defect is untestable here at any pin, and we make no claim about it. For whatever the prevalence figure is worth to you: ten of 108,216, of which five are in a
requiresBridgecodec.Not TrueHD — and the reason is a fixture trap worth recording for anyone who does attempt that retest. At 7.1.3 the bridge took
srcCodecpar.pointee.sample_rate > 0 ? … : 48000(AudioBridge.swift:266-268at tag7.1.3), and the doc comment above it (:205-206) says "TrueHD sometimes reports sample_rate=0 pre-frame". If the demuxer hands the bridge a 0 for a TrueHD track, the old code opened the encoder at 48 kHz and never met the defect — so a TrueHD leg can pass at the old pin without exercising anything, and a "before" arm that passes proves nothing. Our DTS-HD source's codecpar carried the rate — the 7.1.3 init line above readssampleRate=96000— which is what makes our before arm a real before arm, and is why the fixture is DTS-HD. We do hold three 96 kHz TrueHD titles (two 5.1, one 7.1, all default tracks). If a TrueHD arm is worth having, say so and we will run the same A/B on one.Not tested above 7.8.1. Our two post-fix pins are 7.7.1 and 7.8.1. The one thing that keeps this reading current:
AudioBridge.swiftis the same blob at 7.8.1, 7.9.0, 7.10.0, 7.10.1, 7.11.0, 7.12.0, 7.13.0 and 7.14.0, and the rate path is byte-identical all the way back to the fix —supportedSampleRates(for:)at:88,encoderSampleRate(supported:source:)at:108, the call site at:369and the(resampled from …)clause at:385sit at the same lines with the same content at 7.4.1, 7.7.1, 7.8.1, 7.11.0, 7.12.0, 7.13.0 and 7.14.0. The file's only change across that whole span is the 15-line AE#561initial_paddingoffset, which is not on this path. One of the seven does move something under this path, below the Swift: 7.14.0 takes FFmpegBuild 3.5.0 (FFmpegn8.1.3) where all three of our pins are onn8.1.2, andsupportedSampleRates(for:)asks that libavcodec for the E-AC-3 rate list at run time, so a 7.14.0 retest would open an encoder build none of ours did — we have not run one, and what we can add is a rate-path reading of then8.1.2...n8.1.3diff rather than a leg:eac3enc.c,ac3enc.c,ac3tab.c(the 48 / 44.1 / 32 kHz table),avcodec.c,flacenc.canddcadec.care the same blobs at both tags, and its onelibswresamplecode change is an aarch64 float-to-S16 conversion that neither arm here asks for (E-AC-3 takes FLTP atAudioBridge.swift:344and a DTS source's FLAC takes S32 atAudioBridge.swift:348, at 7.4.1 through 7.14.0).One data point on the default question, offered as a data point
You wrote that FLAC-as-default for iOS and macOS is a host decision and that both platforms still reach HDMI and AVRs through adapters, docks and AirPlay. Our host resolves the mode per session from the route's advertised
maximumOutputNumberOfChannelsrather than from a platform default: six or more channels advertised takes.lossless, fewer takes.surroundCompat. The measured consequence is in this thread's own subject matter: this route advertises 32 (audioRoute … max=32in each of the four post-fix legs above), so an unforced session on it resolves to.losslessand never opens the E-AC-3 encoder at all — which is why reproducing this defect here needed the rig, and why the five 96 kHzrequiresBridgetitles in our library take the FLAC arm on this route. That is a third answer to "where should the default land", and it has one known soft spot we have not been able to test: a sink that over-advertises would get multichannel LPCM it then downmixes, and we have no such sink on the bench. Offered because you asked the question, not as a recommendation.Nothing needed from you on our account — this is the hardware half of the note, and the issue looks closeable from where we sit.
DrHurt commentedon Sep 23, 2026
Sorry forgot to report. The same file plays correctly now with eac3 bridging
superuser404notfound commentedon Sep 23, 2026
Thanks both, that closes it.
@DrHurt, good to have it confirmed on the original file with the E-AC-3 bridge.
@cmcpherson274, thank you for the hardware half. The before arm is what makes it worth having: a 7.1.3 leg that reproduces the EINVAL on a source whose codecpar actually carries 96 kHz, next to the 48 kHz resample on
.surroundCompatand 96 kHz kept on.lossless. The TrueHDsample_rate=0point is a fair warning for anyone attempting that retest, and no TrueHD arm is needed on my side, the rate path is codec-agnostic and your DTS-HD leg exercised exactly the branch that failed.On resolving the mode from
maximumOutputNumberOfChannels: the soft spot you name is one I have measured, on a Sonos behind an Apple TV with continuous audio connection off (#24). The route advertisedmaxChannels=32while the active route sat atch=2, so six-channel PCM was folded to stereo, and no AVAudioSession call moved it off two. On that box the advertised maximum describes what the sink could do, not what the link is doing. So the default stays the setting it is now,.surroundCompatunless the host or user picks otherwise.Closing as fixed in 7.4.1.
fix(audio): give the bridge resamplers downmix normalisation, a longe…
fix(audio): give the bridge resamplers downmix normalisation, a longe…