launcher: Raise DualSense speaker volume range for SpeakerFX #1043

Manually merged
github merged 3 commits from gh-pr/1043/head into gh-pr/1043/base 2026-11-26 09:41:24 +00:00
Owner

@⁠Pyxellator on GitHub · 2026-10-04 11:15 UTC · original
Pyxellator:main → main · +40 −18 · 7 files · 3 commits · merged 2026-10-04 15:48 UTC

SpeakerFX was reported as too quiet even with the new speaker slider at 100%. Previously, 100% mapped to unity gain, leaving no room to raise the audio level.

This change maps 50% to the previous PCM level and 100% to twice that amplitude (about +6 dB). New settings default to 50%; saved values are retained. The existing speaker gain applies over USB, Bluetooth, and the main-output fallback. Vibration settings are unchanged.

**@⁠Pyxellator** on GitHub · 2026-10-04 11:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1043) `Pyxellator:main` → `main` · +40 −18 · 7 files · 3 commits · merged 2026-10-04 15:48 UTC SpeakerFX was reported as too quiet even with the new speaker slider at 100%. Previously, 100% mapped to unity gain, leaving no room to raise the audio level. This change maps 50% to the previous PCM level and 100% to twice that amplitude (about +6 dB). New settings default to 50%; saved values are retained. The existing speaker gain applies over USB, Bluetooth, and the main-output fallback. Vibration settings are unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:41:24 +00:00
github manually merged commit 9dd413f01d into gh-pr/1043/base 2026-11-26 09:41:24 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-04 11:35 UTC · original · edited 2026-10-04 14:24 UTC

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: afbac486-7c14-4913-853d-39ed68608302
📥 Commits

Reviewing files that changed from the base of the PR and between db17585277 and 0aaee555e7.

📒 Files selected for processing (7)
  • src/common/emulatorConfig.h
  • src/launcher/forms/configuration_edit_dialog.ui
  • src/launcher/include/configuration.h
  • src/libs/controller.cpp
  • src/main.cpp
  • tests/ControllerSettingsTests.cpp
  • tests/PadHapticsTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Controller speaker volume now defaults to 50 in configuration, the launcher, and command-line help. Settings loading applies a separate fallback of 50 for speaker volume and 100 for vibration intensity. Speaker-volume scaling now uses 50 as its baseline. Tests cover controller levels and USB, Bluetooth, and fallback audio gain.

Suggested reviewers: cosmo, nmzik

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to 9dd41

The change appears mergeable. Run the full test suite and the planned USB and Bluetooth listening checks as normal validation.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 0aaee

The change is confined to existing audio outputs and preserves configuration limits. No new access or privileges were identified. Saved settings can become louder, and physical output behavior at the increased gain remains unverified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The gain change affects audio content delivered through the emulator's existing selected-controller and host-output routes. The inspected comparison shows increased amplitude exposure, but no new destination, device-selection authority, service access or privilege.

Trust Boundaries and Controls

  • observed — Audio samples are multiplied by the host-selected gain before device delivery. Bluetooth replaces nonfinite speaker samples with zero and clamps finite samples to [-1, 1] before Opus encoding. Signed-16 main-output conversion saturates to its integer range; USB and float main-output processing show no equivalent application-level amplitude clamp.

Resilience and Maintainability Implications

  • observed — Existing device-failure handling still closes unavailable controller routes or returns zero, permitting main-output fallback with the same speaker gain. USB queue bounding and stalled-stream cleanup remain independent of the increased amplitude.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 6 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: raising the DualSense speaker-volume range for SpeakerFX.
Description check ✅ Passed The description explains the speaker-volume mapping, new default, and affected output paths. It also notes that vibration settings are unchanged.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 6 files. (1 skipped: 1 unsupported.)

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-04 11:35 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1043#issuecomment-5979509767) · edited 2026-10-04 14:24 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/1043?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `afbac486-7c14-4913-853d-39ed68608302` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between db1758527751125592f57bf02f29616fa0643159 and 0aaee555e7de5eee98d3e203f1fee4b449d1fe23. </details> <details> <summary>📒 Files selected for processing (7)</summary> * `src/common/emulatorConfig.h` * `src/launcher/forms/configuration_edit_dialog.ui` * `src/launcher/include/configuration.h` * `src/libs/controller.cpp` * `src/main.cpp` * `tests/ControllerSettingsTests.cpp` * `tests/PadHapticsTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough Controller speaker volume now defaults to 50 in configuration, the launcher, and command-line help. Settings loading applies a separate fallback of 50 for speaker volume and 100 for vibration intensity. Speaker-volume scaling now uses 50 as its baseline. Tests cover controller levels and USB, Bluetooth, and fallback audio gain. **Suggested reviewers:** `cosmo`, `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"0aaee555e7de5eee98d3e203f1fee4b449d1fe23" --> **Change:** Feature <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `9dd41` <!-- final_review_risk_coverage:{"sourceCommitId":"0aaee555e7de5eee98d3e203f1fee4b449d1fe23","coveredCommitId":"9dd413f01d1d5e816bc440d1f7a116a6240aec32","kind":"target_branch_merge_carry_forward"} --> The change appears mergeable. Run the full test suite and the planned USB and Bluetooth listening checks as normal validation. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Security Architecture Review **Security architecture risk:** _🔵 Low_ · up to `0aaee` The change is confined to existing audio outputs and preserves configuration limits. No new access or privileges were identified. Saved settings can become louder, and physical output behavior at the increased gain remains unverified. **Retained concerns** No architecture-level concerns identified. <details> <summary>Security review details</summary> **Security Blast Radius** - _inferred_ — The gain change affects audio content delivered through the emulator's existing selected-controller and host-output routes. The inspected comparison shows increased amplitude exposure, but no new destination, device-selection authority, service access or privilege. **Trust Boundaries and Controls** - _observed_ — Audio samples are multiplied by the host-selected gain before device delivery. Bluetooth replaces nonfinite speaker samples with zero and clamps finite samples to [-1, 1] before Opus encoding. Signed-16 main-output conversion saturates to its integer range; USB and float main-output processing show no equivalent application-level amplitude clamp. **Resilience and Maintainability Implications** - _observed_ — Existing device-failure handling still closes unavailable controller routes or returns zero, permitting main-output fallback with the same speaker gain. USB queue bounding and stalled-stream cleanup remain independent of the increased amplitude. </details> <!-- architecture_review_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 6 files. (1 skipped: 1 … | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------ | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Title check | ✅ Passed | The title clearly identifies the main change: raising the DualSense speaker-volume range for SpeakerFX. | | Description check | ✅ Passed | The description explains the speaker-volume mapping, new default, and affected output paths. It also notes that vibration settings are unchanged. | </details> <details> <summary>Full details: Docstring Coverage</summary> **Explanation** Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 6 files. (1 skipped: 1 unsupported.) </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1043)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠Nmzik on GitHub · 2026-10-04 15:48 UTC · original

@⁠Pyxellator :)

**@⁠Nmzik** on GitHub · 2026-10-04 15:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1043#issuecomment-5981765594) @⁠Pyxellator :)
Author
Owner

@⁠Rool-IO on GitHub · 2026-10-04 19:57 UTC · original

SpeakerFX was reported as too quiet even with the new speaker slider at 100%. Previously, 100% mapped to unity gain, leaving no room to raise the audio level.

This change maps 50% to the previous PCM level and 100% to twice that amplitude (about +6 dB). New settings default to 50%; saved values are retained. The existing speaker gain applies over USB, Bluetooth, and the main-output fallback. Vibration settings are unchanged.

Thank you.

Seems odd that it used to be unity gain though, because that would mean PS5 Speaker volume settings for DualSense defaults to some boosted level*, maybe they make use of the DualSense own ability to boost the signal, that's distinct from the speaker volume itself - it's called Beamforming, although it's not used by PC ports with SpeakerFX support that I know of, that could be how it works on PS5 - but again, it seems odd.

(*As mentioned in #973, not sure how the PS5 slider for DualSense SpeakerFX volume is mapped but its mid -default- position matches Kyty's new 100%)

**@⁠Rool-IO** on GitHub · 2026-10-04 19:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1043#issuecomment-5983814086) > SpeakerFX was reported as too quiet even with the new speaker slider at 100%. Previously, 100% mapped to unity gain, leaving no room to raise the audio level. > > This change maps 50% to the previous PCM level and 100% to twice that amplitude (about +6 dB). New settings default to 50%; saved values are retained. The existing speaker gain applies over USB, Bluetooth, and the main-output fallback. Vibration settings are unchanged. Thank you. Seems odd that it used to be unity gain though, because that would mean PS5 Speaker volume settings for DualSense defaults to some boosted level*, maybe they make use of the DualSense own ability to boost the signal, that's distinct from the speaker volume itself - it's called Beamforming, although it's not used by PC ports with SpeakerFX support that I know of, that could be how it works on PS5 - but again, it seems odd. (*As mentioned in #973, not sure how the PS5 slider for DualSense SpeakerFX volume is mapped but its mid -default- position matches Kyty's new 100%)
This discussion has been locked. Commenting is limited to contributors.
No description provided.