ngs2: tolerate custom racks declaring num_buffers != 1 #1683
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1683
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1683/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@theantipopau on GitHub · 2026-10-19 01:46 UTC · original
theantipopau:ngs2-custom-buffer-count→main· +43 −1 · 2 files · 1 commits · closed without mergingAtelier Yumia (PPSA25468, #1627) aborts during audio init in Ngs2InitModules on custom.num_buffers != 1. The count is never consumed: init only wires 0x1f user-FX state and render processes those voices in place, with its own EXIT for non-zero source/dest buffer routing. This replaces the count check with a console+log warning and continues, so such titles can boot; genuinely routed buffers still trip the render-path check with a precise message. Adds TestCustomRackBufferCount (counts 0/2/8 through Ngs2RackCreate/Destroy) to ngs2_sampler_tests. Fixes #1627.
@coderabbitai[bot] on GitHub · 2026-10-19 01:51 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
9f9f529f-376b-4686-b698-84abf48d8189📥 Commits
Reviewing files that changed from the base of the PR and between
099de8dea6anded955b26d5.📒 Files selected for processing: 2
src/libs/ngs2.cpptests/Ngs2SamplerTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.
📝 Walkthrough
Ngs2InitModulesnow logs a warning and continues when a custom rack has anum_buffersvalue other than 1. The test suite exercises custom rack buffer counts of 0, 2, and 8, including buffer allocation, rack creation, destruction, and cleanup.Suggested reviewers:
nmzikFixed issue severity: <fixed_issue_severity>Medium</fixed_issue_severity>
Priority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
ed955Custom racks with the tested buffer counts can proceed through initialization, while routed-buffer processing retains its separate checks. No concrete merge-blocking issue is established.
Pre-merge checks:
4 ·
1
#1627] requires Atelier Yumia to pass thecustom.num_buffers != 1initialization failure and begin loading.src/libs/ngs2.cppnow logs a warning and continues whennum_buffersis not 1. T…Full details: Linked Issues check
Explanation
Issue [
#1627] requires Atelier Yumia to pass thecustom.num_buffers != 1initialization failure and begin loading.src/libs/ngs2.cppnow logs a warning and continues whennum_buffersis not 1. The addedTestCustomRackBufferCountcovers values 0, 2, and 8 throughNgs2RackCreateandNgs2RackDestroy. The changes implement the stated coding requirement.Full details: Out of Scope Changes check
Explanation
The pull request changes only NGS2 custom-rack initialization and its focused sampler tests. The warning preserves the separate render-path handling described in the PR. The test directly verifies the changed initialization behavior. No unrelated change is shown in the reviewed diff.
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 helpto get the list of available commands.@Nmzik on GitHub · 2026-10-20 13:46 UTC · original
Fixed
Pull request closed