audio: hold guest audio while a long pipeline compile blocks the GPU #1979

Open
github-bot wants to merge 10 commits from github-bot/gh-1979 into main AGit
Owner

@⁠MrBigBritches on GitHub · 2026-10-29 17:36 UTC · original
MrBigBritches:audio-compile-hold → main · +1023 −17 · 15 files · 10 commits · open

Some games pace their cutscenes by the audio they submit. When a pipeline compile blocks Kyty's GPU command thread, the game's frame loop stops, but its audio thread keeps pushing buffers. Atelier Yumia builds some compute pipelines for up to 141 s on NVIDIA. While it waits, its in-engine cutscene follows the audio clock, so by the time the picture comes back the scene is over.

With the new --audio-compile-hold switch, guest audio submits wait while a runtime pipeline compile has blocked the GPU command thread for at least 250 ms. Shorter compiles are hidden by the host audio queue, and holding for them would add dropouts nobody would otherwise hear. The switch is off by default. It has only been tested in one engine so far.

How it works

  • common/gpuStall
    • The GPU command thread marks a blocking compile with an RAII Scope.
    • WaitWhileStalled() blocks the caller while a Scope has lasted at least the threshold.
    • When the switch is off or no compile is running, it costs two relaxed atomic loads.
    • The thread that owns a Scope is never held.
    • There is no time limit. A compile that never ends has already frozen the game.
  • Marking compiles. Only runtime compiles in GetGraphicsPipeline and GetComputePipeline are marked, and only on the GPU command thread. Boot warm-up and compiles on other threads leave audio alone.
  • Where audio waits:
    • AudioOut: first statement of AudioOutOutput(s).
    • AudioOut2: top of every pass of the AudioOut2ContextPush loop.
    • Audio3d: first statement of Audio3dPortPush.
    • Each wait comes before any port check or lock, so a port or context closed during a hold is seen as invalid afterwards.
  • AudioOut2 missing-context fix. A blocking AudioOut2ContextPush to a destroyed or unknown context used to loop forever. It now returns NOT_READY, the result non-blocking pushes already gave. The console's real error code for this case is unknown. This is a separate commit, because the hold made the race likely.
  • Underrun counting. The host queue drains during a hold on purpose, so the first submit after a hold doesn't count an underrun. A per-thread flag limits this to that one submit.
  • Performance panel. A new "Audio holds" row shows the number of holds and the total time held, counted once per stall. It isn't coloured, because a hold is deliberate silence during a visible freeze, not a fault.

Testing

  • New gpu_stall tests:
    • threshold edges against a fake clock
    • release when a Scope ends or the switch turns off
    • the owner exemption
    • once-per-stall counting
  • Additions to audio_out_timing and audio_out2_port. The compile runs on a stand-in GPU thread and each submit on its own thread. They cover:
    • blocking, non-blocking, batch, null and empty submits are held
    • a push already waiting in the AudioOut2 loop is held on its next pass
    • queries are not held
    • a port or context closed during a hold reports invalid or NOT_READY
    • nothing is held with the switch off
    • the first output after a hold counts no underrun
  • Every guarantee above was mutation-checked: removing or moving a hold, ignoring the switch, holding a query, or never clearing the underrun flag each fails a test. Tests that would hang now have ctest timeouts.
  • Atelier Yumia (PPSA25468) on an RTX 5090, cold driver cache, Kyty shader cache off:
    • Without the hold, audio kept playing through 30–140 s compile stalls and the cutscene was skipped.
    • With --audio-compile-hold:
      • Audio paused with the picture and the cutscene stayed in sync.
      • The log shows 74 holds for 75 compiles of 250 ms or more, 725 s held in total.
      • The panel's "Audio holds" row matched the log.
      • There were no clicks when audio resumed, and no dropouts outside freezes.

Not in this PR

  • A launcher checkbox. The switch is CLI-only for now.
  • Turning the switch on by default. That needs testing in games using other audio engines (FMOD, Wwise, CRI) first.
**@⁠MrBigBritches** on GitHub · 2026-10-29 17:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1979) `MrBigBritches:audio-compile-hold` → `main` · +1023 −17 · 15 files · 10 commits · open Some games pace their cutscenes by the audio they submit. When a pipeline compile blocks Kyty's GPU command thread, the game's frame loop stops, but its audio thread keeps pushing buffers. Atelier Yumia builds some compute pipelines for up to 141 s on NVIDIA. While it waits, its in-engine cutscene follows the audio clock, so by the time the picture comes back the scene is over. With the new `--audio-compile-hold` switch, guest audio submits wait while a runtime pipeline compile has blocked the GPU command thread for at least 250 ms. Shorter compiles are hidden by the host audio queue, and holding for them would add dropouts nobody would otherwise hear. The switch is **off by default**. It has only been tested in one engine so far. ### How it works - **`common/gpuStall`** - The GPU command thread marks a blocking compile with an RAII `Scope`. - `WaitWhileStalled()` blocks the caller while a Scope has lasted at least the threshold. - When the switch is off or no compile is running, it costs two relaxed atomic loads. - The thread that owns a Scope is never held. - There is no time limit. A compile that never ends has already frozen the game. - **Marking compiles.** Only runtime compiles in `GetGraphicsPipeline` and `GetComputePipeline` are marked, and only on the GPU command thread. Boot warm-up and compiles on other threads leave audio alone. - **Where audio waits:** - AudioOut: first statement of `AudioOutOutput(s)`. - AudioOut2: top of every pass of the `AudioOut2ContextPush` loop. - Audio3d: first statement of `Audio3dPortPush`. - Each wait comes before any port check or lock, so a port or context closed during a hold is seen as invalid afterwards. - **AudioOut2 missing-context fix.** A blocking `AudioOut2ContextPush` to a destroyed or unknown context used to loop forever. It now returns NOT_READY, the result non-blocking pushes already gave. The console's real error code for this case is unknown. This is a separate commit, because the hold made the race likely. - **Underrun counting.** The host queue drains during a hold on purpose, so the first submit after a hold doesn't count an underrun. A per-thread flag limits this to that one submit. - **Performance panel.** A new "Audio holds" row shows the number of holds and the total time held, counted once per stall. It isn't coloured, because a hold is deliberate silence during a visible freeze, not a fault. ### Testing - New `gpu_stall` tests: - threshold edges against a fake clock - release when a Scope ends or the switch turns off - the owner exemption - once-per-stall counting - Additions to `audio_out_timing` and `audio_out2_port`. The compile runs on a stand-in GPU thread and each submit on its own thread. They cover: - blocking, non-blocking, batch, null and empty submits are held - a push already waiting in the AudioOut2 loop is held on its next pass - queries are not held - a port or context closed during a hold reports invalid or NOT_READY - nothing is held with the switch off - the first output after a hold counts no underrun - Every guarantee above was mutation-checked: removing or moving a hold, ignoring the switch, holding a query, or never clearing the underrun flag each fails a test. Tests that would hang now have ctest timeouts. - **Atelier Yumia (PPSA25468) on an RTX 5090, cold driver cache, Kyty shader cache off:** - **Without the hold,** audio kept playing through 30–140 s compile stalls and the cutscene was skipped. - **With `--audio-compile-hold`:** - Audio paused with the picture and the cutscene stayed in sync. - The log shows 74 holds for 75 compiles of 250 ms or more, 725 s held in total. - The panel's "Audio holds" row matched the log. - There were no clicks when audio resumed, and no dropouts outside freezes. ### Not in this PR - A launcher checkbox. The switch is CLI-only for now. - Turning the switch on by default. That needs testing in games using other audio engines (FMOD, Wwise, CRI) first.
Atelier Yumia builds some pipelines for up to 36 s on NVIDIA,
synchronously on the GPU command thread. Its frame loop waits on the
GPU, but its audio thread keeps pushing buffers, and the cutscene
follows the audio clock, so the scene skips ahead and is lost. A
throwaway build that held audio pushes during compiles kept the scene
in step.

GpuStall is the bookkeeping for that hold. The GPU command thread marks
the time it is blocked with a Scope, and guest audio entry points will
call WaitWhileStalled, which waits only while a Scope has lasted at
least 250 ms. Most cold compiles finish under that, and the host queue
hides about 50 ms, so holding for them would add dropouts to stalls
nobody notices. Each Scope keeps its own start time, so short compiles
one after another never add up to a hold. A thread that owns a Scope
never waits, and turning the module off releases every waiter. The
hold has no time limit, because a compile that never ends has already
frozen the game.

Nothing uses it yet and it starts disabled, so this commit changes no
behaviour. Tests cover the tracker against a fake clock, and threaded
release when a Scope ends or the module is turned off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GetGraphicsPipeline and GetComputePipeline build a missing pipeline
synchronously on the GPU command thread, and nothing the guest submits
runs until the driver returns. Wrapping that build in a GpuStall Scope
lets guest audio wait for it once it passes the hold threshold.

The Scope is only taken on the GPU command thread. A build on any other
thread leaves the game running, and holding audio for it would freeze
sound while the picture moves. A check skips the Scope there rather
than asserting, so a future caller on another thread keeps today's
behaviour instead of stopping the emulator. The boot-time warm up in
pipelineSerialization.cpp is not marked, since the guest has not
started. Storing the pipeline and checkpointing the driver cache stay
outside the Scope, so only the driver build counts toward the hold.

GpuStall is still disabled and nothing waits on it yet, so this commit
changes no behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The switch is off by default. Holding guest audio has only been tried
in Atelier Yumia, so it stays opt-in until more engines have been run
with it.

Config::Load pushes the setting into GpuStall rather than having the
audio code read the config, so audio tests keep working without one.
Shutdown turns it off, which lets any audio thread still held go.
There is no launcher option yet.

Nothing waits on GpuStall yet. The audio entry points follow in the
next commits, so this one changes no behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With --audio-compile-hold, AudioOutOutput and AudioOutOutputs wait in
GpuStall while a pipeline compile has blocked the GPU command thread for
at least 250 ms. Atelier Yumia paces its cutscenes by the audio it
pushes here, so without the hold the scene ran ahead of its frozen
frames and was lost.

The wait is the first statement of each entry point, before the port
checks. A port closed while a submit is held is then reported as
invalid, instead of reaching the closed port further down. Port state
queries are not held, and nothing guest-visible is frozen. Once the
compile ends, the host queue has drained, so the next outputs prime it
again without pacing, as after any other long gap. That drain also
counts one AudioUnderruns per hold.

New AudioOutTimingTests cases run the compile on a stand-in GPU thread
and each submit on its own guest thread, since the thread that owns a
stall is never held. They check that single, batch and null-buffer
submits are held, that a held output only reaches the queue after
release and then re-primes, that a port closed during a hold reports an
invalid port, that port queries are not held, and that nothing is held
with the switch off. A wrongly held call hangs, so audio_out_timing now
has a 60 s ctest timeout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AudioOut2ContextPush looped until it found its context. A non-blocking
push gave up with NOT_READY, but a blocking push to a destroyed or
unknown context slept and retried forever, so the game's audio thread
never came back. A context destroyed while another thread pushes was a
narrow race before. The coming audio hold makes it likely, because a
push can wait out a long pipeline compile while the game tears the
context down.

A push to a missing context now returns NOT_READY in both modes. The
console's real error for this case is unknown, so this keeps the
result non-blocking pushes already gave rather than guessing a new one.

The test pushes to a destroyed and to a never-created context on a
thread with a time limit, so the old behaviour fails instead of hanging.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With --audio-compile-hold, AudioOut2ContextPush waits in GpuStall while
a pipeline compile has blocked the GPU command thread for at least
250 ms, the same as AudioOut. Blocking and non-blocking pushes both
wait. Returning NOT_READY instead would contradict the queue level and
leave games that poll spinning.

The wait runs at the top of every pass of the push loop, not once on
entry. A blocking push already waiting for queue space would otherwise
slip through mid-compile once the modelled queue drains by wall-clock
time, and play one extra grain per stall. Waiting before the context
lookup also means a context destroyed during a hold is seen as missing,
so the held push returns NOT_READY. The console's real error for that
case is unknown.

Pushes reach the host through AudioInternal::AudioOutOutputs, not the
guest AudioOut entry points, so a push is never held twice.

Tests run the compile on a stand-in GPU thread and each push on its own
guest thread. They check that blocking, non-blocking and empty-context
pushes are held and then succeed, that a push already waiting for queue
space is held on its next pass, that queue queries are not held, that
a context destroyed during a hold gives NOT_READY, and that nothing is
held with the switch off. A wrongly held call hangs, so audio_out2_port
now has a 60 s ctest timeout. The missing-context helper now reports a
generic timeout message, since the new tests reuse it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With --audio-compile-hold, Audio3dPortPush waits in GpuStall before
anything else while a pipeline compile has blocked the GPU command
thread for at least 250 ms, like AudioOut and AudioOut2. A game that
paces its scenes by Audio3d otherwise runs ahead of its frozen frames. Audio3d
playback is still simulated, so for now the hold only affects pacing,
not sound.

Audio3d ports are never closed, so a port cannot vanish while a push is
held. The wait after a blocking push only follows the emulator's own
playback thread, so it needs no hold of its own. Audio3d has no test
target, because its playback depends on kernel semaphores. The hold
logic itself is covered by the GpuStall, AudioOut and AudioOut2 tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A hold for a long pipeline compile lets the host audio queue run dry on
purpose. The first submit after it found an empty queue and counted an
AudioUnderruns, so every hold showed up as a dropout in the performance
panel.

WaitWhileStalled now records on its thread whether it waited, and
ResumedFromHold reports that. Every call sets it, so only the first
submit after a hold is exempt, and a real underrun on the same thread
later still counts. The thread that was held is the thread that submits
next, for AudioOut and for AudioOut2, which reaches the host on the
pushing thread. A per-thread flag therefore marks exactly the right
submit, where a global hold generation would excuse ports that were
never held. The queue still re-primes without pacing after a hold.

Tests check that a held submit counts no underrun, that a real underrun
on the same thread afterwards counts one, that an underrun with no hold
counts one, and that the flag is set only by the call that waited.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new "Audio holds" row shows how many stalls held guest audio and for
how long in total, so a run with --audio-compile-hold can be measured.
It sits after "Audio underruns" and is not coloured, because a hold is
deliberate silence during a freeze the user already sees, not a fault.
It always shows, reading zero when the switch is off.

AudioHolds counts once per stall, not once per held thread, so a stall
that holds the AudioOut, AudioOut2 and Audio3d threads together counts
one. The held time runs from the first submit the stall held to the
end of the last overlapping Scope. A stall that held nothing is not
counted. Like every panel counter, these only collect while the panel
is open, so the "held N ms" log line stays for runs without it.

GpuStallTests check that one stall holding two threads counts once
with nonzero held time, that a stall holding nothing counts zero, and
that overlapping Scopes count as one stall only when the last ends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Removing a level of nesting for the missing-context return left the
use_device_clock line at 102 columns, past the 100-column limit. It is
wrapped as it was before that change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:10:39 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-29 17:43 UTC · original

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 5e837a9bea and 5e9d269ce2.

Files selected for processing: 15
  • CMakeLists.txt
  • src/common/debugCounters.h
  • src/common/emulatorConfig.cpp
  • src/common/emulatorConfig.h
  • src/common/gpuStall.cpp
  • src/common/gpuStall.h
  • src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp
  • src/graphics/presentation/performanceOverlay.cpp
  • src/libs/audio.cpp
  • src/libs/audio3d.cpp
  • src/libs/libAudio2.cpp
  • src/main.cpp
  • tests/AudioOut2PortTests.cpp
  • tests/AudioOutTimingTests.cpp
  • tests/GpuStallTests.cpp

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

Walkthrough

Adds optional GPU-stall tracking and a command-line option that enables audio holds during qualifying pipeline compilation stalls. Audio submission paths wait for the stall to end when holding is enabled. The change adds hold counters and performance-overlay reporting, adjusts underrun accounting after a hold, and adds tests for stall tracking and audio submission behavior.

Suggested reviewers: nmzik, juanfariasdev

Priority: Normal

Change: Feature

Merge Risk: Minimal · up to 5e9d2

The reviewed hold paths and test linkage show no unresolved issue that needs to be fixed before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 43.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: holding guest audio during long GPU-blocking pipeline compilation.
Description check Passed The description directly explains the audio hold feature, implementation scope, behavior, testing, and out-of-scope items.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 43.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 37 functions across 14 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · 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-29 17:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1979#issuecomment-6504071191) <!-- coderabbit-ai-generated:v1 --> <!-- 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/1979?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/5e837a9beac82c031868eaad9348d6a48245fb99/.coderabbit.yaml>) - **Commit**: [5e837a9](<https://github.com/KytyPS5/KytyPS5/commit/5e837a9beac82c031868eaad9348d6a48245fb99>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `65a65c1d-d9f8-4210-82a7-88b6274ea07c` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 5e837a9beac82c031868eaad9348d6a48245fb99 and 5e9d269ce26de79b68506ec1497a7666810cfeeb. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 15</strong></summary> <dl> <dd> * `CMakeLists.txt` * `src/common/debugCounters.h` * `src/common/emulatorConfig.cpp` * `src/common/emulatorConfig.h` * `src/common/gpuStall.cpp` * `src/common/gpuStall.h` * `src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp` * `src/graphics/presentation/performanceOverlay.cpp` * `src/libs/audio.cpp` * `src/libs/audio3d.cpp` * `src/libs/libAudio2.cpp` * `src/main.cpp` * `tests/AudioOut2PortTests.cpp` * `tests/AudioOutTimingTests.cpp` * `tests/GpuStallTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> Adds optional GPU-stall tracking and a command-line option that enables audio holds during qualifying pipeline compilation stalls. Audio submission paths wait for the stall to end when holding is enabled. The change adds hold counters and performance-overlay reporting, adjusts underrun accounting after a hold, and adds tests for stall tracking and audio submission behavior. **Suggested reviewers:** `nmzik`, `juanfariasdev` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <strong>Priority: <picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/priority-normal-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Normal</strong> <!-- change_assessment_commit:"5e9d269ce26de79b68506ec1497a7666810cfeeb" --> **Change:** Feature <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>5e9d2</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `5e9d2` --> <!-- final_review_risk_coverage:{"sourceCommitId":"5e9d269ce26de79b68506ec1497a7666810cfeeb","coveredCommitId":"5e9d269ce26de79b68506ec1497a7666810cfeeb","kind":"reviewed"} --> The reviewed hold paths and test linkage show no unresolved issue that needs to be fixed before merging. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> 1</strong></summary> <dl> <dd> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 warning</strong> | Check name | Status | Explanation | Resolution | | :---------------- | :----------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Warning](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg) | Docstring coverage is 43.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 4 passed</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly and concisely identifies the main change: holding guest audio during long GPU-blocking pipeline compilation. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description directly explains the audio hold feature, implementation scope, behavior, testing, and out-of-scope items. | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** Docstring coverage is 43.24% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 37 functions across 14 files. (1 skipped: 1 unsupported.) **Resolution** Write docstrings for the functions missing them to satisfy the coverage threshold. </dd> </dl> </details> </dd> </dl> </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">Autofix</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=1979)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>❤️ Share</strong></summary> <dl> <dd> - [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) </dd> </dl> </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This pull request has changes conflicting with the target branch.
  • CMakeLists.txt
  • src/common/debugCounters.h
  • src/common/emulatorConfig.cpp
  • src/common/emulatorConfig.h
  • src/libs/audio3d.cpp
  • src/libs/libAudio2.cpp
  • src/main.cpp
  • tests/AudioOut2PortTests.cpp
  • tests/AudioOutTimingTests.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1979/head:github-bot/gh-1979'
git switch 'github-bot/gh-1979'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1979'
git switch 'github-bot/gh-1979'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1979'
git switch 'github-bot/gh-1979'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1979'
git switch 'main'
git merge --squash 'github-bot/gh-1979'
git switch 'main'
git merge --ff-only 'github-bot/gh-1979'
git switch 'main'
git merge 'github-bot/gh-1979'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.