Play snd0.at9 when selecting a title in the launcher #1545
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!1545
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1545/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?
@Pipe530 on GitHub · 2026-10-16 02:31 UTC · original
Pipe530:pipe530-splash-snd0-at9→main· +154 −2 · 4 files · 1 commits · merged 2026-10-16 13:59 UTCPlays the selected title's sce_sys/snd0.at9 in the launcher using LibAtrac9 and SDL3. Switching or clearing the selection, launching a game, and closing the launcher stop playback.
Validated with a launcher build, mono/dual-mono and gapless audio fixtures, archive playback, cancellation and cleanup checks, and ASan/UBSan.
@coderabbitai[bot] on GitHub · 2026-10-16 02:37 UTC · original · edited 2026-10-16 14:01 UTC
📝 Walkthrough
The change adds ATRAC9 decoding and SDL playback for splash audio. The system overlay starts snd0.at9 when both splash images exist. It stops playback when the overlay shuts down or the splash finishes.
Priority: ⬇️ Low
Change: Feature
Merge Risk: 🟡 Moderate · up to
ebc06Playing the splash sound decodes the game's snd0.at9 at startup. A malformed file with an unsupported channel configuration can trigger an out-of-bounds read in the decoder before validation runs, which can crash startup when the splash screen is enabled. Reject invalid channel configurations before initializing the decoder, then this is otherwise ready to merge.
Pre-merge checks:
4 ·
1
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.@coderabbitai[bot] on GitHub · 2026-10-16 02:37 UTC · original
On
src/graphics/presentation/splashSound.cppline 79 (outdated):🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 15949
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 15949
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 210
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 565
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 2371
🌐 Web query:
github shadps4-emu ext-LibAtrac9 ec8899dadf393f655f2871a94e0fe4b3d6220c9a Atrac9InitDecoder ChannelConfigs💡 Result:
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 604
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 11139
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 9226
Validate the channel configuration before
Atrac9InitDecoder.The WAVE config can contain channel indexes 6 or 7. The pinned LibAtrac9 decoder uses this 3-bit value to index its six-entry
ChannelConfigstable before this code checksinfo.channels. Reject indexes above 5 before callingAtrac9InitDecoder.@coderabbitai[bot] on GitHub · 2026-10-16 02:37 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
4105d4b8-27fe-4d59-b74c-43a49b6aa913📥 Commits
Reviewing files that changed from the base of the PR and between
3ff6606fcband ebc067077701cd7c828651e46bea4254f0739c4b.📒 Files selected for processing: 3
src/graphics/presentation/splashSound.cppsrc/graphics/presentation/splashSound.hsrc/graphics/presentation/systemOverlay.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@Nmzik on GitHub · 2026-10-16 13:58 UTC · original
@Pipe530 I ran a few tests and it sounds a bit weird on the splash screen since its only displayed for 1/2 seconds causing the audio to cut off. So I moved it to the launcher where it plays when the user selects a title
@Pipe530 on GitHub · 2026-10-16 14:29 UTC · original · edited 2026-10-16 16:54 UTC
@Nmzik
Can you consider then adding a minimum splash screen time so the sound has the time to play fully when you run the game? In my test the splash screens are displayed for like 7 seconds when running the game,maybe because of my specs.
@Nmzik on GitHub · 2026-10-17 02:47 UTC · original
@Pipe530 splash screen is closed by the game itself, not Kyty, so adding a timer would be kinda "hacky". Each game decides when to close its splash screen, not us :)