Repository navigation
Conversation
|
Update: I retrieved the raw log for the I added the missing comments in c9ad363. The new Per your guidance, I have not started the GitHub Actions workflows. I have also left the separate |
We only get 20 runners from GitHub and these are basically running all day long, so I'll run it when I'm ready to merge the code. Docs failures are here: https://app.readthedocs.org/projects/sunshinestream/builds/35131897/ Don't worry about the other already reported failure. Your agent can lint and build the docs if it follows the AGENTS.md file. |
ReenigneArcher
left a comment
There was a problem hiding this comment.
Requesting changes on c9ad3637b48907316f3957f72ac46cb9c7155023: the settings page cannot see the advertised encoder capabilities, and the new backend/negotiation behavior has no added regression tests.
On FFmpeg packaging, I recommend using Sunshine's existing linked FFmpeg libraries for this feature. The pinned build-deps configuration enables the encoders, and its published macOS archive already contains both native encoders. I linked the PR's extracted encoder class to that archive and successfully encoded all eight combinations of AC-3/E-AC-3, stereo/5.1, and normal/high quality. This establishes that a second runtime FFmpeg distribution is unnecessary for those encoding operations; it is not a Windows DLL-loader test.
The native AC-3 and E-AC-3 implementations are LGPL-2.1-or-later, compatible with Sunshine's GPL-3.0 licensing. FFmpeg's legal page distinguishes copyright licensing from codec patents. I found no identified licensing requirement in this PR that mandates user-supplied DLLs. Dolby's 2007 filing listed original Dolby Digital patent expirations through 2017 and Dolby Digital Plus through 2022; that historical disclosure is not comprehensive present-day patent or trademark clearance.
Validation: 28 existing focused Vue tests passed, along with two temporary review reproductions showing the settings bug and verifying the proposed endpoint correction; all eight isolated encoding cases passed; whitespace checks passed for all 15 changed files. The reproductions and probes live outside the working checkout and are not tests contributed by this PR.
GitHub reports the head as mergeable and behind master (current branch tip a178f465e42f8e77102002e9156b8becd7b13628). The Sunshine documentation check passed. Full Windows builds, Windows DLL loading, client passthrough, and protocol interoperability were not verified locally; GitHub Actions await maintainer approval. The reported Sonar issue points to the unchanged permission-status test override, so it is not a new-code finding.
Review completed by Codex | Model: gpt-6.1-sol | Thinking: xhigh
|
Thanks for the detailed review. I pushed a revision to address the requested changes:
The code and tests are committed, but I have not run the revised Windows build or tests locally. I have updated the PR description to reflect that CI and playback re-validation of the linked-FFmpeg change are still pending. I have not attempted to start the Actions workflows, per your note about the runner pool. |
|
I extended the revision beyond the review fixes to remove the remaining Windows/runtime-DLL assumptions:
The current branch head contains these changes. I have not run the revised build/tests or verified Dolby playback on other platforms; per the earlier request, I am leaving Actions for maintainer scheduling. |
|
Hi @ReenigneArcher ! Could a maintainer please approve and run the GitHub Actions workflows for this PR? They are currently awaiting approval. I'd like to make sure the CI tests, including the Dolby AC3/EAC3 tests, are executed. Thanks! |
|
Thanks for the update. I rechecked
These are source-review findings; I haven't run playback on this head. Review completed by Codex | Model: unavailable | Thinking: unavailable |
|
Thanks. On The remaining scope change from the previous review is in For playback validation, please identify the exact Sunshine and client revisions tested and include the highest-bitrate 5.1 AC-3 mode. Its audio datagrams exceed a standard 1,500-byte MTU; the new buffer tests verify the write, not delivery or playback across the network. Review completed by Codex | Model: unavailable | Thinking: unavailable |
|
On the two pairing signatures in We understand the scope concern: these functions are not part of the Dolby audio-negotiation change. However, the switch from We would therefore prefer not to restore the old signatures without first checking the static-analysis impact. Reverting them may reintroduce the finding that motivated the change and could make the PR fail the Quality Gate for a reason that has already been addressed. That would leave us trading a scope-only concern for a potential quality-gate regression. We also want to be precise about the current evidence: the bot has reported that the latest Sonar analysis failed, but we have not yet established the cause. We are not claiming that this failure proves the Could you clarify whether your objection is strictly that these two signature changes are outside the PR's functional scope, or whether you have a specific technical concern with using The goal is to resolve this explicitly rather than reverting a deliberate Quality Gate fix without knowing whether doing so would reintroduce the original issue. |
|
Yes, it’s a scope objection. I haven’t identified a correctness problem with The current Sonar comment reports duplicated blocks, not a pairing-signature finding. I haven’t verified which blocks it flagged. If they’re the two new transport tests, a shared test fixture or helper can remove the duplicate setup without losing the separate write and reject-before-write assertions. Review completed by Codex | Model: unavailable | Thinking: unavailable |
|
The pairing signatures are restored, and the PR still has no workflow changes. Two test fixes remain on
These are source findings; I haven’t run the test binary on this revision. Review completed by Codex | Model: unavailable | Thinking: unavailable |
|



Description
This PR adds optional Dolby Digital (AC-3) and Dolby Digital Plus (E-AC-3) encoded audio output to Sunshine on platforms whose linked FFmpeg build contains the corresponding encoders. Compatible Moonlight clients can negotiate these formats as an alternative to Opus when they need a compressed Dolby bitstream for native decoding or passthrough.
The main use case is Moonlight running directly on a Smart TV connected to a receiver or sound system through optical S/PDIF. AC-3 can provide Dolby Digital stereo or 5.1 output over compatible TV audio paths. Actual output depends on the TV model, its audio settings, the receiver, and client support; E-AC-3 passthrough over optical output is model-dependent.
Related client implementation
The companion Moonlight Tizen with AC-3 support (see details in its website) implements the client-side Dolby offer/accept negotiation and passthrough through Tizen's native EMSS audio renderer. It is an independently maintained client and is linked here as an example of a client that uses this new host feature. This PR changes Sunshine only; other clients need their own support for the optional negotiation and playback/passthrough path.
Implementation
High quality audioswitch. Higher bitrates increase network bandwidth usage.The existing Opus encoder and its normal negotiation path are intended to remain behaviorally unchanged. This is a host-side feature, not a Tizen-only or Windows-only server feature.
Testing
sunshinestreamRead the Docs build passed (build 35163518).masterinto the feature branch in commite7e57df; GitHub reports no merge conflicts.Type of Change
Checklist
lb-update-clang-formathelper has been run and a second pass produced no changes; other lint checks have not been run on the latest revision).AI Usage
The contributor remains responsible for reviewing the implementation, verifying test results, and addressing review feedback.