[GAME BUG]: 3D Mini Golf - distorted/garbage audio from boot (same symptom as Ghost Song #805) #819

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

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

Game title

3D Mini Golf

Game ID / serial

PPSA03647 (first-party, content ID UP1643-PPSA03647_00-3DMINIGOLFGAME00, v01.000.000)

KytyPS5 version

KytyPS5-2026-09-24-5a705dd (source build, commit 5a705dd)

Compatibility status

In game (~28 FPS average at 1280x720)

Result details

The game boots and is playable, but audio is distorted garbage noise from the very first sound - logo/attract phase, menus, UI and gameplay are all affected. There is no silence and no crackling: it is continuous corrupted-sample noise, the same character as the Ghost Song report in #805.

Performance note: #44 measured 1-2 FPS on a Ryzen 7 7700X + RX 7900 XTX in July 2026. On the current build this game averages ~28 FPS at 1280x720 on much weaker laptop hardware (i5-13420H + RTX 5050 Laptop), so the frame-rate problem appears fixed by the recent graphics work.

Log analysis (complete session log, 88 MB uncompressed, zipped to 7.6 MB):

  • Unity + FMOD title - FMOD mixer, AudioOut, stream and nonblocking threads all start normally.
  • Same stubbed import signature as #805: unresolved PLT import patched to stub [369] [0000000901993650] <- 00000002000007bc, wVwPU50pS1c[AudioOut_v1][AudioOut_v1.1][Func] (eboot.bin).
  • That stub is never invoked: the log contains zero Unresolved import stub called lines, so it is not the direct cause.
  • Host streams open cleanly twice: AudioOut: opened SDL stream (48000 Hz, 2 ch, format 0x8120) - 0x8120 is SDL_AUDIO_S16LSB.
  • 159 stubs in total; every other stub is PSN/trophy related (PSNCore.prx: NpWebApi2, NpManager, PSNCommon, NpTrophy2).
  • Zero fatal errors, zero assertions, zero shader compile failures.
  • The log contains no AudioOut buffer/queue activity lines at all, so the corruption cannot be traced from the log itself.

Hypothesis (for triage): FMOD mixes float samples while the SDL port here is negotiated as S16. If the data written to / read from the port is interpreted with the wrong sample format, the result is exactly this kind of corrupted noise from the very first buffer. #805 shows the same symptom class on the same Unity/FMOD stack with a different title.

Steps to reproduce the result

  1. Run KytyPS5 build KytyPS5-2026-09-24-5a705dd (clang/lld Release) with printf_direction=File.
  2. Add 3D Mini Golf (PPSA03647) and start it.
  3. Sound is already distorted noise during the logo/attract phase.
  4. Continue to the menu and into gameplay: the noise continues everywhere.
  5. Exit the game normally so the log is flushed.

Expected behavior

Clean music and sound effects from boot through gameplay, as on real hardware. The original reporter in #44 noted audio was perfect on build 0.0.5.5 in July 2026, so this may be a regression somewhere between that build and the current one.

OS

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

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 - complete unmodified session log (88 MB uncompressed, 7.6 MB zipped). Uploaded as a release asset in my fork because the issue-attachments upload flow is not available to the CLI; happy to attach it inline instead.

Extra notes

  • Own dump of a first-party PS5 title, v01.000.000.
  • Related reports: #805 (Ghost Song - same Unity/FMOD stack, same distorted-noise symptom), #44 (original 3D Mini Golf report).
  • Test configuration: default settings, 1280x720, Mailbox present mode, shader optimization Performance, keyboard only.
  • Since the log has no AudioOut queue/buffer logging, reproducing the corruption likely needs instrumentation around AudioOutOutputs / QueueSdlAudio for FMOD-backed ports.
  • AI assistance (OpenCode) was used to analyze the log and prepare this report; I reviewed the findings and text before submitting.
**@⁠6d4m** on GitHub · 2026-09-25 01:42 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/819) ### Game title 3D Mini Golf ### Game ID / serial PPSA03647 (first-party, content ID `UP1643-PPSA03647_00-3DMINIGOLFGAME00`, v01.000.000) ### KytyPS5 version KytyPS5-2026-09-24-5a705dd (source build, commit 5a705dd) ### Compatibility status In game (~28 FPS average at 1280x720) ### Result details The game boots and is playable, but **audio is distorted garbage noise from the very first sound** - logo/attract phase, menus, UI and gameplay are all affected. There is no silence and no crackling: it is continuous corrupted-sample noise, the same character as the Ghost Song report in #805. Performance note: #44 measured 1-2 FPS on a Ryzen 7 7700X + RX 7900 XTX in July 2026. On the current build this game averages ~28 FPS at 1280x720 on much weaker laptop hardware (i5-13420H + RTX 5050 Laptop), so the frame-rate problem appears fixed by the recent graphics work. Log analysis (complete session log, 88 MB uncompressed, zipped to 7.6 MB): - Unity + FMOD title - FMOD mixer, AudioOut, stream and nonblocking threads all start normally. - Same stubbed import signature as #805: `unresolved PLT import patched to stub [369] [0000000901993650] <- 00000002000007bc, wVwPU50pS1c[AudioOut_v1][AudioOut_v1.1][Func]` (eboot.bin). - That stub is never invoked: the log contains zero `Unresolved import stub called` lines, so it is not the direct cause. - Host streams open cleanly twice: `AudioOut: opened SDL stream (48000 Hz, 2 ch, format 0x8120)` - 0x8120 is SDL_AUDIO_S16LSB. - 159 stubs in total; every other stub is PSN/trophy related (PSNCore.prx: NpWebApi2, NpManager, PSNCommon, NpTrophy2). - Zero fatal errors, zero assertions, zero shader compile failures. - The log contains no AudioOut buffer/queue activity lines at all, so the corruption cannot be traced from the log itself. Hypothesis (for triage): FMOD mixes float samples while the SDL port here is negotiated as S16. If the data written to / read from the port is interpreted with the wrong sample format, the result is exactly this kind of corrupted noise from the very first buffer. #805 shows the same symptom class on the same Unity/FMOD stack with a different title. ### Steps to reproduce the result 1. Run KytyPS5 build KytyPS5-2026-09-24-5a705dd (clang/lld Release) with printf_direction=File. 2. Add 3D Mini Golf (PPSA03647) and start it. 3. Sound is already distorted noise during the logo/attract phase. 4. Continue to the menu and into gameplay: the noise continues everywhere. 5. Exit the game normally so the log is flushed. ### Expected behavior Clean music and sound effects from boot through gameplay, as on real hardware. The original reporter in #44 noted audio was perfect on build 0.0.5.5 in July 2026, so this may be a regression somewhere between that build and the current one. ### OS CachyOS (Arch-based), kernel 7.2.6-1-cachyos, KDE Plasma on Wayland, PipeWire 1.6.8 ### 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/6d4m/KytyPS5/releases/download/logs-2026-09-25/_kyty.zip) - complete unmodified session log (88 MB uncompressed, 7.6 MB zipped). Uploaded as a release asset in my fork because the issue-attachments upload flow is not available to the CLI; happy to attach it inline instead. ### Extra notes - Own dump of a first-party PS5 title, v01.000.000. - Related reports: #805 (Ghost Song - same Unity/FMOD stack, same distorted-noise symptom), #44 (original 3D Mini Golf report). - Test configuration: default settings, 1280x720, Mailbox present mode, shader optimization Performance, keyboard only. - Since the log has no AudioOut queue/buffer logging, reproducing the corruption likely needs instrumentation around `AudioOutOutputs` / `QueueSdlAudio` for FMOD-backed ports. - AI assistance (OpenCode) was used to analyze the log and prepare this report; I reviewed the findings and text before submitting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:45 +00:00
Author
Owner

@⁠6d4m on GitHub · 2026-09-25 03:04 UTC · original

Measurement results: the emulator-side audio path is clean, the guest's output is not

I instrumented AudioOutOpen/QueueSdlAudio locally (raw PCM capture, per-buffer statistics, queue-depth and host-clock accounting) and ran this title on KytyPS5-2026-09-24-5a705dd on Linux. Results, so the next person does not have to re-measure:

Correction to my earlier reports: format 0x8120 is SDL_AUDIO_F32LSB, not SDL_AUDIO_S16LSB (that is 0x8010). The ports in this game are param = 4 = FloatStereo, and SDL negotiates F32 in, F32 out with no conversion, so the sample-format-mismatch hypothesis in this report is wrong and can be dropped.

What the measurements show:

Measurement Result
Device actually opened H510-PRO Wireless headset / Raptor Lake cAVS Speaker (raw ALSA, bypasses PipeWire - a PipeWire monitor capture is therefore silent)
Stream format 48000 Hz, 2 ch, 0x8120 in and out - no resampling, no conversion
Non-finite samples in guest PCM 0 of 21,000 buffers (~112 s), so no NaN propagation in this run
Buffer layout interleaved, confirmed by measurement: interleaved mean abs-delta 0.0053 / ZCR 0.032 / L-R correlation 0.435, versus 0.0820 / 0.595 / 0.112 for a planar reading
Duplicated or stalled buffers none (0 exact duplicates over 3,000 contiguous buffers)
Partial buffer fill none - energy is equal across all four quarters of every buffer
Production rate audio/host ratio 0.998-1.010 - the guest writes 48,000 frames/s, dead on realtime
Queue cushion steady 14,336 bytes (37 ms), fully_drained = 1 in 35,000 buffers, under_one_buffer = 0
Content smooth, continuous, low-frequency musical waveform (ZCR ~0.012, peak 0.05-0.25) - real music, generated too slowly

So the transport, pacing, format and pacing paths are all behaving correctly, and the PCM the emulator hands to SDL is clean, continuous and correctly laid out. The music is already wrong inside the guest buffer.

Two other observations from the logs:

  • The only stubbed audio import is sceAudioOutSetMixLevelPadSpk (NID wVwPU50pS1c, pad-speaker mix level). It is never called at runtime here, so it is not involved.
  • The AJM path is not used: AjmModuleRegister(codec=1) runs (an ATRAC9 capability probe) but AjmInstanceCreate never does, so the ATRAC9 decoder in the emulator is not on this path.

Given #147's diagnosis - on PS5, FMOD's System object arrives with its "initialized" marker already set, so FMOD Studio skips its real core init and Unity's startup output configuration never takes effect - a wrong mixer/output rate inside the guest would match every measurement above, including the warbling (a rate that tracks scheduling rather than a fixed one). I could not confirm the mechanism without hooking a guest-owned FMOD export, which is the approach #147 used and was rejected as a hack, so I have not attempted it.

If useful I can provide the instrumented build, the captured PCM, or a scripted run harness that boots this title and presses start automatically.

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

**@⁠6d4m** on GitHub · 2026-09-25 03:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/819#issuecomment-5825991794) ### Measurement results: the emulator-side audio path is clean, the guest's output is not I instrumented `AudioOutOpen`/`QueueSdlAudio` locally (raw PCM capture, per-buffer statistics, queue-depth and host-clock accounting) and ran this title on `KytyPS5-2026-09-24-5a705dd` on Linux. Results, so the next person does not have to re-measure: **Correction to my earlier reports:** `format 0x8120` is `SDL_AUDIO_F32LSB`, not `SDL_AUDIO_S16LSB` (that is `0x8010`). The ports in this game are `param = 4` = FloatStereo, and SDL negotiates **F32 in, F32 out** with no conversion, so the sample-format-mismatch hypothesis in this report is wrong and can be dropped. What the measurements show: | Measurement | Result | |---|---| | Device actually opened | `H510-PRO Wireless headset` / `Raptor Lake cAVS Speaker` (raw ALSA, bypasses PipeWire - a PipeWire monitor capture is therefore silent) | | Stream format | 48000 Hz, 2 ch, `0x8120` in **and** out - no resampling, no conversion | | Non-finite samples in guest PCM | **0** of 21,000 buffers (~112 s), so no NaN propagation in this run | | Buffer layout | interleaved, confirmed by measurement: interleaved mean abs-delta 0.0053 / ZCR 0.032 / L-R correlation 0.435, versus 0.0820 / 0.595 / 0.112 for a planar reading | | Duplicated or stalled buffers | none (0 exact duplicates over 3,000 contiguous buffers) | | Partial buffer fill | none - energy is equal across all four quarters of every buffer | | Production rate | audio/host ratio **0.998-1.010** - the guest writes 48,000 frames/s, dead on realtime | | Queue cushion | steady **14,336 bytes (37 ms)**, `fully_drained = 1` in 35,000 buffers, `under_one_buffer = 0` | | Content | smooth, continuous, low-frequency musical waveform (ZCR ~0.012, peak 0.05-0.25) - real music, generated too slowly | So the transport, pacing, format and pacing paths are all behaving correctly, and the PCM the emulator hands to SDL is clean, continuous and correctly laid out. The music is already wrong *inside* the guest buffer. Two other observations from the logs: - The only stubbed audio import is `sceAudioOutSetMixLevelPadSpk` (NID `wVwPU50pS1c`, pad-speaker mix level). It is never called at runtime here, so it is not involved. - The AJM path is not used: `AjmModuleRegister(codec=1)` runs (an ATRAC9 capability probe) but `AjmInstanceCreate` never does, so the ATRAC9 decoder in the emulator is not on this path. Given #147's diagnosis - on PS5, FMOD's `System` object arrives with its "initialized" marker already set, so FMOD Studio skips its real core init and Unity's startup output configuration never takes effect - a wrong mixer/output rate inside the guest would match every measurement above, including the warbling (a rate that tracks scheduling rather than a fixed one). I could not confirm the mechanism without hooking a guest-owned FMOD export, which is the approach #147 used and was rejected as a hack, so I have not attempted it. If useful I can provide the instrumented build, the captured PCM, or a scripted run harness that boots this title and presses start automatically. AI assistance (OpenCode) was used for the measurements and this summary; I reviewed the results before posting.
Author
Owner

@⁠6d4m on GitHub · 2026-09-25 03:16 UTC · original

Further negative results, and a question

Following up on my previous measurements, I ruled out three more candidate causes experimentally. None of them changed the symptom, so I am no longer guessing from the outside and would value direction.

1. Output cushion / starvation - not the cause. I raised the target latency from 40 ms to 200 ms (and the cap from 16 to 64 buffers, so the cushion can actually reach that) and the pitch warble was unchanged. With the original 40 ms setting the queue held a steady 14,336 bytes, fully_drained = 1 in 35,000 buffers and under_one_buffer = 0, so the device was never starved in the first place.

2. Guest TSC frequency - not the cause. sceKernelGetTscFrequency reports the host TSC rate (2,611,200,000 here) rather than a fixed console value, which would make any guest tick-to-time conversion run at the wrong rate. I deliberately halved the reported value (verified in the log: guest TSC frequency reported as 1305600000) and the audio was bit-for-bit the same to the ear, so the mix rate is not derived from TSC ticks in this title.

3. The FMOD setOutput shim from #147 - not applicable to this game. FMOD is statically linked into eboot.bin here (there is no libfmod.prx in the dump), so there is no guest module export to take priority over; the shim I tried from that PR was never invoked (zero calls).

For reference, the original report in #44 said audio was perfect on build 0.0.5.5 in July 2026, so this looks like a regression somewhere between then and now rather than a game-specific problem. The audio path has seen roughly 29 commits since 2026-07-20, including f68c77d SDL3 update (#787), 66f6405 audio: fix pacing and AudioOut2 port lifetime and f380d69 fix AudioOut pacing.

Question: does anyone know a build between those two points where Unity/FMOD audio still sounds correct on Linux? If so I can bisect rather than keep guessing. Failing that, is the guest-side FMOD mixer (DSP running on emulated CPU) the place to look? I am happy to supply the instrumented build, the captured PCM, or the scripted run harness that boots this title and presses start automatically.

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

**@⁠6d4m** on GitHub · 2026-09-25 03:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/819#issuecomment-5826091469) ### Further negative results, and a question Following up on my previous measurements, I ruled out three more candidate causes experimentally. None of them changed the symptom, so I am no longer guessing from the outside and would value direction. **1. Output cushion / starvation** - not the cause. I raised the target latency from 40 ms to 200 ms (and the cap from 16 to 64 buffers, so the cushion can actually reach that) and the pitch warble was unchanged. With the original 40 ms setting the queue held a steady 14,336 bytes, `fully_drained = 1` in 35,000 buffers and `under_one_buffer = 0`, so the device was never starved in the first place. **2. Guest TSC frequency** - not the cause. `sceKernelGetTscFrequency` reports the host TSC rate (2,611,200,000 here) rather than a fixed console value, which would make any guest tick-to-time conversion run at the wrong rate. I deliberately halved the reported value (verified in the log: `guest TSC frequency reported as 1305600000`) and the audio was bit-for-bit the same to the ear, so the mix rate is not derived from TSC ticks in this title. **3. The FMOD `setOutput` shim from #147** - not applicable to this game. FMOD is statically linked into `eboot.bin` here (there is no `libfmod.prx` in the dump), so there is no guest module export to take priority over; the shim I tried from that PR was never invoked (zero calls). For reference, the original report in #44 said audio was perfect on build `0.0.5.5` in July 2026, so this looks like a regression somewhere between then and now rather than a game-specific problem. The audio path has seen roughly 29 commits since 2026-07-20, including `f68c77d SDL3 update (#787)`, `66f6405 audio: fix pacing and AudioOut2 port lifetime` and `f380d69 fix AudioOut pacing`. **Question:** does anyone know a build between those two points where Unity/FMOD audio still sounds correct on Linux? If so I can bisect rather than keep guessing. Failing that, is the guest-side FMOD mixer (DSP running on emulated CPU) the place to look? I am happy to supply the instrumented build, the captured PCM, or the scripted run harness that boots this title and presses start automatically. AI assistance (OpenCode) was used for the measurements and this summary; I reviewed the results before posting.
Author
Owner

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

Found the cause, and it was not the SDL3 update I blamed earlier. PR #822 has the fix.

What's actually happening

The guest always produces valid audio: correct rate (48000 frames/s), correct format, no dropouts, no duplicated or corrupted samples. Every check on the data itself passes. The problem is when the guest's audio thread gets serviced.

QueueSdlAudio waits until the queued audio drops to the target cushion, then lets the guest write. But it only looks at queue depth, so nothing stops the guest from refilling the queue as fast as it can. The result is bursty behaviour: several buffers queued instantly, then the thread blocked for the entire cushion while it drains.

Measured on PPSA03647 with 256-frame blocks at 48 kHz:

before:  interval between writes  min 0.000 ms   max 43.95 ms
after:   interval between writes  min 5.01 ms    max 6.45 ms   (stddev ~0.003 ms)
ideal interval: 5.33 ms

The average rate is 48000 frames/s in both cases, which is exactly why this was so hard to find. A mixer that runs on a timer cannot track a cadence that alternates between 0 ms and 44 ms, so the music comes out slow and warbling.

Correction to my earlier posts

I twice suggested the SDL3 update (#787) caused this. That was wrong:

  • I first claimed it after testing only the two ends of a 60-commit range without bisecting the middle.
  • The commit immediately before the SDL3 update is already affected, so SDL3 is not the cause.
  • The "working" older build I compared against turned out to be a single good run; repeated runs of the same build are also affected. The original reporter has since retested on Windows with a current build and audio is fine there, so this is not a regression at all - it is pacing that Windows happens to tolerate and Linux does not.

The buffer size does matter as well (this game is sensitive to a 1024-frame device buffer versus 256), but that is a separate sensitivity, not the cause of this.

Fix

Keep the cushion as it is, and additionally hold writes to one buffer period so the cadence stays even. The wait is skipped when the stream is running low so it cannot cause an underrun, and the deadline is per-port so multiple output ports do not interfere.

With this, the menu music in 3D Mini Golf plays correctly and the write interval is steady. Ghost Song should be worth checking too, since it is the same Unity/FMOD setup.

Happy to test other titles if anyone has a list of affected ones.

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

**@⁠6d4m** on GitHub · 2026-09-25 05:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/819#issuecomment-5827170134) Found the cause, and it was not the SDL3 update I blamed earlier. PR #822 has the fix. ## What's actually happening The guest always produces valid audio: correct rate (48000 frames/s), correct format, no dropouts, no duplicated or corrupted samples. Every check on the data itself passes. The problem is *when* the guest's audio thread gets serviced. `QueueSdlAudio` waits until the queued audio drops to the target cushion, then lets the guest write. But it only looks at queue depth, so nothing stops the guest from refilling the queue as fast as it can. The result is bursty behaviour: several buffers queued instantly, then the thread blocked for the entire cushion while it drains. Measured on PPSA03647 with 256-frame blocks at 48 kHz: ``` before: interval between writes min 0.000 ms max 43.95 ms after: interval between writes min 5.01 ms max 6.45 ms (stddev ~0.003 ms) ideal interval: 5.33 ms ``` The average rate is 48000 frames/s in both cases, which is exactly why this was so hard to find. A mixer that runs on a timer cannot track a cadence that alternates between 0 ms and 44 ms, so the music comes out slow and warbling. ## Correction to my earlier posts I twice suggested the SDL3 update (#787) caused this. That was wrong: - I first claimed it after testing only the two ends of a 60-commit range without bisecting the middle. - The commit immediately before the SDL3 update is already affected, so SDL3 is not the cause. - The "working" older build I compared against turned out to be a single good run; repeated runs of the same build are also affected. The original reporter has since retested on Windows with a current build and audio is fine there, so this is not a regression at all - it is pacing that Windows happens to tolerate and Linux does not. The buffer size does matter as well (this game is sensitive to a 1024-frame device buffer versus 256), but that is a separate sensitivity, not the cause of this. ## Fix Keep the cushion as it is, and additionally hold writes to one buffer period so the cadence stays even. The wait is skipped when the stream is running low so it cannot cause an underrun, and the deadline is per-port so multiple output ports do not interfere. With this, the menu music in 3D Mini Golf plays correctly and the write interval is steady. Ghost Song should be worth checking too, since it is the same Unity/FMOD setup. Happy to test other titles if anyone has a list of affected ones. 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#819
No description provided.