[GAME STATUS]: Ghost Song - distorted/garbage audio in gameplay (menus OK) #805

Closed
opened 2026-11-26 09:33:01 +00:00 by github-bot · 3 comments
Owner

@⁠6d4m on GitHub · 2026-09-24 13:43 UTC · original

Game title

Ghost Song

Game ID / serial

PPSA09232 (EUR, v01.005)

KytyPS5 version

KytyPS5-2026-09-24-2aaf0c9 (source build, commit 2aaf0c9)

Compatibility status

In game

Last working build / first broken build

No response

Result details

Boot/render: reaches controllable gameplay (In game). Menus work. The problem is audio.

  • In gameplay: audio is constant distorted/garbled noise (corrupted-sample static) instead of music and sound effects.
  • In menus: sounds play correctly, navigation/UI audio is clean.

Log observations (full session log attached as _kyty.zip, 109 MB uncompressed):

  • Unity + FMOD title.
  • SDL audio streams open normally: 48000 Hz, 2 channels (F32 x2 + S16).
  • FMOD initialises cleanly; zero fatal errors in the entire session.
  • Exactly one stubbed audio-related import out of 166 total stubs (the rest are PSN/Net/Agc): unresolved PLT import patched to stub [372] [0000000901a62ec0] <- 0000000200000af5, wVwPU50pS1c[AudioOut_v1][AudioOut_v1.1][Func]
  • Because menu audio is correct but gameplay audio is corrupted, the failure is likely in the FMOD/game-mix path rather than the host audio backend, but the stubbed AudioOut_v1 import may be worth checking too.

First test on this setup, so no older-build comparison yet.

Steps to reproduce the result

  1. Build KytyPS5 from source (clang + lld, Release) and set printf_direction=File in the launcher settings.
  2. Add Ghost Song (PPSA09232) and start it from the launcher.
  3. Play through the title screen into controllable gameplay (keyboard: WASD to move).
  4. Listen during gameplay: audio is distorted garbage noise.
  5. Open a menu: menu sounds are clean and correct.

Expected behavior

Music and sound effects during gameplay should play cleanly, matching the already-correct menu audio. No distortion.

OS

CachyOS (Arch-based), kernel 7.2.6-1-cachyos, KDE Plasma on Wayland

CPU

Intel Core i5-13420H

GPU

NVIDIA GeForce RTX 5050 Laptop (Blackwell), driver 615.71.09, Vulkan 1.4.351

RAM / VRAM

32 GB RAM / 8 GB VRAM

Log file upload

_kyty.zip

Screenshots/video

No response

Extra notes

  • Own dump, EUR, v01.005 (Backport 4.xx+), serial PPSA09232.
  • Tested with default keyboard mapping, no gamepad.
  • Config: printf_direction=File, shader_log_direction=File; attached log is the complete unmodified session (zipped to 4.5 MB).
  • Built from source at commit 2aaf0c9 on 2026-09-24 with one local CMake-only fix (linker -Map path quoting for build paths containing spaces); no emulation code modified. The build fix will be submitted upstream separately.
  • Host audio: PipeWire 1.6.8.
**@⁠6d4m** on GitHub · 2026-09-24 13:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/805) ### Game title Ghost Song ### Game ID / serial PPSA09232 (EUR, v01.005) ### KytyPS5 version KytyPS5-2026-09-24-2aaf0c9 (source build, commit 2aaf0c9) ### Compatibility status In game ### Last working build / first broken build _No response_ ### Result details Boot/render: reaches controllable gameplay (In game). Menus work. The problem is audio. - In gameplay: audio is constant distorted/garbled noise (corrupted-sample static) instead of music and sound effects. - In menus: sounds play correctly, navigation/UI audio is clean. Log observations (full session log attached as _kyty.zip, 109 MB uncompressed): - Unity + FMOD title. - SDL audio streams open normally: 48000 Hz, 2 channels (F32 x2 + S16). - FMOD initialises cleanly; zero fatal errors in the entire session. - Exactly one stubbed audio-related import out of 166 total stubs (the rest are PSN/Net/Agc): unresolved PLT import patched to stub [372] [0000000901a62ec0] <- 0000000200000af5, wVwPU50pS1c[AudioOut_v1][AudioOut_v1.1][Func] - Because menu audio is correct but gameplay audio is corrupted, the failure is likely in the FMOD/game-mix path rather than the host audio backend, but the stubbed AudioOut_v1 import may be worth checking too. First test on this setup, so no older-build comparison yet. ### Steps to reproduce the result 1. Build KytyPS5 from source (clang + lld, Release) and set printf_direction=File in the launcher settings. 2. Add Ghost Song (PPSA09232) and start it from the launcher. 3. Play through the title screen into controllable gameplay (keyboard: WASD to move). 4. Listen during gameplay: audio is distorted garbage noise. 5. Open a menu: menu sounds are clean and correct. ### Expected behavior Music and sound effects during gameplay should play cleanly, matching the already-correct menu audio. No distortion. ### OS CachyOS (Arch-based), kernel 7.2.6-1-cachyos, KDE Plasma on Wayland ### CPU Intel Core i5-13420H ### GPU NVIDIA GeForce RTX 5050 Laptop (Blackwell), driver 615.71.09, Vulkan 1.4.351 ### RAM / VRAM 32 GB RAM / 8 GB VRAM ### Log file upload [_kyty.zip](https://github.com/user-attachments/files/32612029/_kyty.zip) ### Screenshots/video _No response_ ### Extra notes - Own dump, EUR, v01.005 (Backport 4.xx+), serial PPSA09232. - Tested with default keyboard mapping, no gamepad. - Config: printf_direction=File, shader_log_direction=File; attached log is the complete unmodified session (zipped to 4.5 MB). - Built from source at commit 2aaf0c9 on 2026-09-24 with one local CMake-only fix (linker -Map path quoting for build paths containing spaces); no emulation code modified. The build fix will be submitted upstream separately. - Host audio: PipeWire 1.6.8.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:01 +00:00
Author
Owner

@⁠6d4m on GitHub · 2026-09-25 01:42 UTC · original

Cross-reference: same symptom on a second Unity/FMOD title

A second, unrelated game now shows the same distorted-noise audio on the current build: 3D Mini Golf (PPSA03647) — reported in #819 with the complete log.

  • Same engine stack: Unity + FMOD (mixer/AudioOut/stream threads)
  • Same stubbed import signature: wVwPU50pS1c[AudioOut_v1][AudioOut_v1.1][Func]
  • Host stream opens fine in both cases: 48000 Hz, 2 ch, S16 (0x8120) — while FMOD mixes float samples
  • Neither stub is ever called at runtime, and neither log contains any fatal errors
  • Difference: in 3D Mini Golf the noise is present from boot and in menus too, not just in gameplay

Two different titles on the same stack producing corrupted output suggests an emulator-side issue in the FMOD audio output path (sample-format/queue handling) rather than something game-specific. #819 includes a hypothesis and notes that the log has no AudioOut queue/buffer instrumentation to trace it.

AI assistance (OpenCode) was used to analyze both logs and prepare this comment.

**@⁠6d4m** on GitHub · 2026-09-25 01:42 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/805#issuecomment-5825296077) ### Cross-reference: same symptom on a second Unity/FMOD title A second, unrelated game now shows the same distorted-noise audio on the current build: **3D Mini Golf (PPSA03647)** — reported in #819 with the complete log. - Same engine stack: Unity + FMOD (mixer/AudioOut/stream threads) - Same stubbed import signature: `wVwPU50pS1c[AudioOut_v1][AudioOut_v1.1][Func]` - Host stream opens fine in both cases: 48000 Hz, 2 ch, **S16** (0x8120) — while FMOD mixes float samples - Neither stub is ever called at runtime, and neither log contains any fatal errors - Difference: in 3D Mini Golf the noise is present from boot and in menus too, not just in gameplay Two different titles on the same stack producing corrupted output suggests an emulator-side issue in the FMOD audio output path (sample-format/queue handling) rather than something game-specific. #819 includes a hypothesis and notes that the log has no AudioOut queue/buffer instrumentation to trace it. AI assistance (OpenCode) was used to analyze both logs and prepare this comment.
Author
Owner

@⁠6d4m on GitHub · 2026-09-25 05:12 UTC · original

Update: the cause turned out not to be what I suspected in my earlier posts here.

The guest produces valid audio the whole time - correct rate, format, no corrupted or dropped samples. The actual problem is the cadence of the guest's audio writes. The blocking queue check in QueueSdlAudio only enforces a cushion, so the guest can queue a burst of buffers and then get blocked for the whole cushion, giving write intervals that alternate between 0 ms and ~44 ms instead of one 5.33 ms buffer period. A mixer running on a timer cannot track that, and the audio comes out slow and warbling.

I also need to correct myself: I blamed the SDL3 update (#787) in an earlier comment here. That was wrong - the commit right before it is affected too, and repeated runs of older builds are also affected, so it is not a regression. The original reporter has retested on Windows with a current build and audio is correct there, so this is pacing behaviour that Windows tolerates and Linux does not.

Fix and measurements are in PR #822, with more detail in #819.

**@⁠6d4m** on GitHub · 2026-09-25 05:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/805#issuecomment-5827171128) Update: the cause turned out not to be what I suspected in my earlier posts here. The guest produces valid audio the whole time - correct rate, format, no corrupted or dropped samples. The actual problem is the cadence of the guest's audio writes. The blocking queue check in `QueueSdlAudio` only enforces a cushion, so the guest can queue a burst of buffers and then get blocked for the whole cushion, giving write intervals that alternate between 0 ms and ~44 ms instead of one 5.33 ms buffer period. A mixer running on a timer cannot track that, and the audio comes out slow and warbling. I also need to correct myself: I blamed the SDL3 update (#787) in an earlier comment here. That was wrong - the commit right before it is affected too, and repeated runs of older builds are also affected, so it is not a regression. The original reporter has retested on Windows with a current build and audio is correct there, so this is pacing behaviour that Windows tolerates and Linux does not. Fix and measurements are in PR #822, with more detail in #819.
Author
Owner

@⁠6d4m on GitHub · 2026-09-25 05:17 UTC · original

Confirmed fixed on my side. Gameplay audio is clean now in both games I reported here (PPSA09232 and PPSA03647).

The cause was the pacing of the guest's audio writes rather than anything in the game or the audio format. QueueSdlAudio only checked how much audio was queued, so the guest could queue a burst of buffers and then get blocked for the whole cushion. On this title the interval between writes alternated between 0 ms and about 44 ms instead of one 5.33 ms buffer period, while the average rate stayed correct at 48000 frames/s - which is why the data always looked fine in logs. A mixer running on a timer cannot track that cadence, hence the noise during gameplay.

PR #822 holds writes to one buffer period so the cadence stays even, skipping that wait when the stream is running low. Write intervals are now steady at about 5.4 ms and the audio is correct in both games.

Also correcting my earlier comments in this thread: I blamed the SDL3 update, which was wrong, and the format mismatch I suspected at the start was not it either.

Ghost Song was the one where menus were fine and gameplay was noisy, and that difference makes sense with this explanation - the menus barely use the audio thread, so the bursty cadence had little to disturb.

AI assistance (OpenCode) was used for the measurements and this summary; I reviewed the results before posting.

**@⁠6d4m** on GitHub · 2026-09-25 05:17 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/805#issuecomment-5827214896) Confirmed fixed on my side. Gameplay audio is clean now in both games I reported here (PPSA09232 and PPSA03647). The cause was the pacing of the guest's audio writes rather than anything in the game or the audio format. `QueueSdlAudio` only checked how much audio was queued, so the guest could queue a burst of buffers and then get blocked for the whole cushion. On this title the interval between writes alternated between 0 ms and about 44 ms instead of one 5.33 ms buffer period, while the average rate stayed correct at 48000 frames/s - which is why the data always looked fine in logs. A mixer running on a timer cannot track that cadence, hence the noise during gameplay. PR #822 holds writes to one buffer period so the cadence stays even, skipping that wait when the stream is running low. Write intervals are now steady at about 5.4 ms and the audio is correct in both games. Also correcting my earlier comments in this thread: I blamed the SDL3 update, which was wrong, and the format mismatch I suspected at the start was not it either. Ghost Song was the one where menus were fine and gameplay was noisy, and that difference makes sense with this explanation - the menus barely use the audio thread, so the bursty cadence had little to disturb. AI assistance (OpenCode) was used for the measurements and this summary; I reviewed the results before posting.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#805
No description provided.