startup: add a steady-versus-bursty playback-timing control #1368

Manually merged
github merged 3 commits from gh-pr/1368/head into gh-pr/1368/base 2026-11-26 23:01:37 +00:00
Owner

@⁠triggered02 on GitHub · 2026-11-24 09:26 UTC · original
triggered02:startup/audio-pacing-control → main · +234 −0 · 2 files · 3 commits · merged 2026-11-24 09:50 UTC

Playback-timing slice of #1145, as its own change. Refs #1145, #1250.

What it is

The same sink and the same endpoint as #1250, fed the same total audio two ways:

  • steady: one 10 ms block every 10 ms, paced in real time;
  • bursty: runs of blocks back to back, then a 150 ms withholding gap, repeated.

For each phase it records the first submission, block and frame counts, the endpoint clock, the largest gap between submissions, the drained interval (how long the queue sat empty while the producer withheld data) and the recovery time (producer resuming to consumption advancing).

The sink and endpoint are unmodified — this measures them, and it does not change any provider behaviour. #1250's fixture and NinosTech's decode oracle stay as the independent controls.

Measured here

Shared-mode endpoint, float32, 2 ch, 48 kHz, 24000-frame buffer:

steady: blocks=120 frames=57600 largest_submit_gap=16.5ms drained_ms=0.0   recovery_ms=not measured
bursty: blocks=168 frames=80640 largest_submit_gap=158.9ms drained_ms=740.6 recovery_ms=16.0
comparison: drained steady=0.0 ms bursty=740.6 ms

The control can therefore see a producer-side stutter: bursty input produces a drained interval that steady input does not, and recovery is measured at 16 ms. It skips (77) where no shared-mode endpoint is available.

What it does not do yet

It does not instrument the title's audible path. That is the second half of the slice: record the same fields at the submission boundary the audible stream actually crosses. I would do that as a follow-up on this branch once the control is agreed, with the TSan-free instrumentation switch off by default.

**@⁠triggered02** on GitHub · 2026-11-24 09:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368) `triggered02:startup/audio-pacing-control` → `main` · +234 −0 · 2 files · 3 commits · merged 2026-11-24 09:50 UTC Playback-timing slice of #1145, as its own change. Refs #1145, #1250. ## What it is The same sink and the same endpoint as #1250, fed the same total audio two ways: - **steady**: one 10 ms block every 10 ms, paced in real time; - **bursty**: runs of blocks back to back, then a 150 ms withholding gap, repeated. For each phase it records the first submission, block and frame counts, the endpoint clock, the largest gap between submissions, the **drained interval** (how long the queue sat empty while the producer withheld data) and the **recovery time** (producer resuming to consumption advancing). The sink and endpoint are unmodified — this measures them, and it does not change any provider behaviour. #1250's fixture and NinosTech's decode oracle stay as the independent controls. ## Measured here Shared-mode endpoint, float32, 2 ch, 48 kHz, 24000-frame buffer: ``` steady: blocks=120 frames=57600 largest_submit_gap=16.5ms drained_ms=0.0 recovery_ms=not measured bursty: blocks=168 frames=80640 largest_submit_gap=158.9ms drained_ms=740.6 recovery_ms=16.0 comparison: drained steady=0.0 ms bursty=740.6 ms ``` The control can therefore see a producer-side stutter: bursty input produces a drained interval that steady input does not, and recovery is measured at 16 ms. It skips (77) where no shared-mode endpoint is available. ## What it does not do yet It does not instrument the title's audible path. That is the second half of the slice: record the same fields at the submission boundary the audible stream actually crosses. I would do that as a follow-up on this branch once the control is agreed, with the TSan-free instrumentation switch off by default.
The reported audio fault is a pacing symptom, and neither an audible description nor CPU utilization
identifies its source. This adds the source-built control for the playback-timing slice of #1145: the
same sink and endpoint as #1250, fed the same total audio two ways.

- steady: one 10 ms block every 10 ms, paced in real time;
- bursty: runs of blocks back to back, then a 150 ms withholding gap, repeated.

For each phase it records the first submission, the block and frame counts, the endpoint clock, the
largest gap between submissions, the drained interval (time the queue sat empty while the producer
withheld data) and the recovery time (producer resuming to consumption advancing). The sink and
endpoint are unmodified; the fixture measures them, and the check is the difference between the two
phases rather than an absolute threshold.

Measured on the machine's shared-mode endpoint (float32, 2 ch, 48 kHz, 24000-frame buffer):

  steady: blocks=120 frames=57600 largest_submit_gap=16.5ms drained_ms=0.0  recovery_ms=not measured
  bursty: blocks=168 frames=80640 largest_submit_gap=158.9ms drained_ms=740.6 recovery_ms=16.0
  comparison: drained steady=0.0 ms bursty=740.6 ms

So the control can see a producer-side stutter: bursty input produces a drained interval the steady
phase does not, and the recovery is measured at 16 ms. It skips (77) where no shared-mode endpoint is
available.

This is the measurement only: it does not change any provider behaviour, and the audible path in the
title is instrumented separately.
Addresses the review of #1368.

- Both phases now submit the same total audio: 120 blocks of 10 ms in each (steady paced one per 10 ms,
  bursty as 20 runs of 6 with a 150 ms withholding gap). The comparison therefore varies pacing only,
  and the fixture fails if the frame totals differ.
- Every counter is a delta against a snapshot taken before the phase, because AudioSink::report() is
  cumulative for the life of the sink. The bursty line no longer includes the steady phase's blocks,
  frames, consumption or clock, and first_block is no longer reported as a phase figure.

Measured on the shared-mode endpoint (float32, 2 ch, 48 kHz, 24000-frame buffer):

  steady: blocks=120 frames=57600 largest_submit_gap=20.6ms drained_ms=0.0   recovery_ms=not measured
  bursty: blocks=120 frames=57600 largest_submit_gap=159.2ms drained_ms=1872.2 recovery_ms=16.6
  comparison: blocks 120/120 frames 57600/57600 drained steady=0.0 ms bursty=1872.2 ms
Peer review of the pacing control (tests/startup_audio_pacing.cpp) noted the COM initialisation had no
matching teardown. The body is moved into run() so the sink is destroyed before main calls
CoUninitialize, which is what the exit order requires.

The two other findings from that review are already addressed in 0972768a: both phases now submit the
same 120 blocks (the header comment and the behaviour agree), and every counter is a per-phase delta
because AudioSink::report() is cumulative for the sink's lifetime.

startup_audio and startup_audio_pacing pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:01:35 +00:00
github manually merged commit 10009a9487 into gh-pr/1368/base 2026-11-26 23:01:37 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 09:26 UTC · original · edited 2026-11-24 09:30 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T09:30:22.439928Z 8d062f3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 09:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#issuecomment-7127424691) · edited 2026-11-24 09:30 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"8d062f33a7d40d0ed7c8aa3bb0c7da5e1180a5cb","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T09:30:22.439928Z">2026-11-24T09:30:22.439928Z</relative-time> | `8d062f3` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 09:30 UTC · original

P2 Badge Match frame counts between the two phases

The steady phase submits 120 10-ms blocks, while this call submits only 8 × 6 = 48. The phases therefore vary the amount of audio as well as its pacing, contrary to the stated same-total-audio control, so the comparison does not isolate pacing. Match the total frame counts, adjusting the burst count or gaps as needed.

AGENTS.md reference: AGENTS.md:L170-L170

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 09:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#discussion_r4677961976) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Match frame counts between the two phases** The steady phase submits 120 10-ms blocks, while this call submits only 8 × 6 = 48. The phases therefore vary the amount of audio as well as its pacing, contrary to the stated same-total-audio control, so the comparison does not isolate pacing. Match the total frame counts, adjusting the burst count or gaps as needed. AGENTS.md reference: [AGENTS.md:L170-L170](https://github.com/R0Y00/Xbox2Windows/blob/8d062f33a7d40d0ed7c8aa3bb0c7da5e1180a5cb/AGENTS.md#L170-L170) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 09:30 UTC · original

P2 Badge Report bursty-phase counters instead of sink-lifetime totals

run_bursty uses the same sink as run_steady, and AudioSink::report() returns cumulative counters. This snapshot therefore includes both phases: the printed bursty block and frame counts include the 120 steady blocks, and first_block still refers to the steady phase. The bursty report mislabels sink-lifetime consumption and clock data as phase-specific; report per-phase deltas or reset the report state.

AGENTS.md reference: AGENTS.md:L170-L170

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 09:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#discussion_r4677961998) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Report bursty-phase counters instead of sink-lifetime totals** `run_bursty` uses the same `sink` as `run_steady`, and `AudioSink::report()` returns cumulative counters. This snapshot therefore includes both phases: the printed bursty block and frame counts include the 120 steady blocks, and `first_block` still refers to the steady phase. The bursty report mislabels sink-lifetime consumption and clock data as phase-specific; report per-phase deltas or reset the report state. AGENTS.md reference: [AGENTS.md:L170-L170](https://github.com/R0Y00/Xbox2Windows/blob/8d062f33a7d40d0ed7c8aa3bb0c7da5e1180a5cb/AGENTS.md#L170-L170) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Author
Owner

@⁠triggered02 on GitHub · 2026-11-24 09:38 UTC · original

Both findings fixed in 0972768a.

Same total audio (first finding). Both phases now submit 120 blocks of 10 ms — steady paced one per 10 ms, bursty as 20 runs of 6 with a 150 ms withholding gap. The fixture also asserts that the frame totals match (steady.frames != bursty.frames fails), so the control cannot silently drift back into varying amount as well as pacing.

Per-phase counters (second finding). You are right that report() is cumulative for the life of the sink. Every printed number is now a delta against a snapshot taken before the phase, so the bursty line excludes the steady phase, and first_block is no longer reported as a phase figure (it is a sink-lifetime call index).

Re-measured after both fixes, shared-mode endpoint, float32, 2 ch, 48 kHz, 24000-frame buffer:

steady: blocks=120 frames=57600 largest_submit_gap=20.6ms drained_ms=0.0    recovery_ms=not measured
bursty: blocks=120 frames=57600 largest_submit_gap=159.2ms drained_ms=1872.2 recovery_ms=16.6
comparison: blocks 120/120 frames 57600/57600 drained steady=0.0 ms bursty=1872.2 ms

The drained figure grew from 740.6 ms to 1872.2 ms now that it covers only the bursty phase rather than a mixed snapshot — which is the cumulative-counter bug you spotted showing up in the measurement itself.

**@⁠triggered02** on GitHub · 2026-11-24 09:38 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#issuecomment-7127688871) Both findings fixed in `0972768a`. **Same total audio (first finding).** Both phases now submit **120 blocks of 10 ms** — steady paced one per 10 ms, bursty as 20 runs of 6 with a 150 ms withholding gap. The fixture also *asserts* that the frame totals match (`steady.frames != bursty.frames` fails), so the control cannot silently drift back into varying amount as well as pacing. **Per-phase counters (second finding).** You are right that `report()` is cumulative for the life of the sink. Every printed number is now a delta against a snapshot taken before the phase, so the bursty line excludes the steady phase, and `first_block` is no longer reported as a phase figure (it is a sink-lifetime call index). Re-measured after both fixes, shared-mode endpoint, float32, 2 ch, 48 kHz, 24000-frame buffer: ``` steady: blocks=120 frames=57600 largest_submit_gap=20.6ms drained_ms=0.0 recovery_ms=not measured bursty: blocks=120 frames=57600 largest_submit_gap=159.2ms drained_ms=1872.2 recovery_ms=16.6 comparison: blocks 120/120 frames 57600/57600 drained steady=0.0 ms bursty=1872.2 ms ``` The drained figure grew from 740.6 ms to 1872.2 ms now that it covers only the bursty phase rather than a mixed snapshot — which is the cumulative-counter bug you spotted showing up in the measurement itself.
Author
Owner

@⁠triggered02 on GitHub · 2026-11-24 09:47 UTC · original

Thanks for the technical review — one useful correction and two notes on what you saw.

Your findings 1 and 2 were already fixed in 0972768a, which landed before your review was posted but after the commit you reviewed (8d062f33). That commit:

  • makes both phases submit 120 blocks (steady paced, bursty as 20 runs of 6), so the header comment and the behaviour agree, and asserts that the frame totals match so it cannot drift again;
  • reports every counter as a per-phase delta against a snapshot taken before the phase, since AudioSink::report() is cumulative for the sink's lifetime.

Re-measured after that fix, which also shows your point in the numbers:

steady: blocks=120 frames=57600 largest_submit_gap=20.6ms  drained_ms=0.0    recovery_ms=not measured
bursty: blocks=120 frames=57600 largest_submit_gap=159.2ms drained_ms=1872.2 recovery_ms=16.6
comparison: blocks 120/120 frames 57600/57600 drained steady=0.0 ms bursty=1872.2 ms

The old mixed snapshot reported drained_ms=740.6; with the phases separated it is 1872.2, i.e. the cumulative counter was diluting the very measurement the control exists to make.

Your finding 3 is fixed in 10009a94: the body moved into run() so the sink is destroyed before main() calls CoUninitialize().

On the skips: 77 with no default render endpoint is the intended capability skip, so a headless Windows Server node reporting 0/1 passed is the expected result there — the check needs a shared-mode endpoint to measure anything.

**@⁠triggered02** on GitHub · 2026-11-24 09:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#issuecomment-7127901886) Thanks for the technical review — one useful correction and two notes on what you saw. **Your findings 1 and 2 were already fixed** in `0972768a`, which landed before your review was posted but after the commit you reviewed (`8d062f33`). That commit: - makes both phases submit **120 blocks** (steady paced, bursty as 20 runs of 6), so the header comment and the behaviour agree, and asserts that the frame totals match so it cannot drift again; - reports every counter as a **per-phase delta** against a snapshot taken before the phase, since `AudioSink::report()` is cumulative for the sink's lifetime. Re-measured after that fix, which also shows your point in the numbers: ``` steady: blocks=120 frames=57600 largest_submit_gap=20.6ms drained_ms=0.0 recovery_ms=not measured bursty: blocks=120 frames=57600 largest_submit_gap=159.2ms drained_ms=1872.2 recovery_ms=16.6 comparison: blocks 120/120 frames 57600/57600 drained steady=0.0 ms bursty=1872.2 ms ``` The old mixed snapshot reported `drained_ms=740.6`; with the phases separated it is `1872.2`, i.e. the cumulative counter was diluting the very measurement the control exists to make. **Your finding 3 is fixed in `10009a94`**: the body moved into `run()` so the sink is destroyed before `main()` calls `CoUninitialize()`. On the skips: `77` with no default render endpoint is the intended capability skip, so a headless Windows Server node reporting `0/1 passed` is the expected result there — the check needs a shared-mode endpoint to measure anything.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 09:30 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d062f33a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 09:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#pullrequestreview-6036716749) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `8d062f33a7` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 09:40 UTC · original · reviewed

Technical peer-review of commit 8d062f33a7d40d0ed7c8aa3bb0c7da5e1180a5cb:

Verification

  • Linux:
    • git diff --check origin/main...HEAD: clean.
    • tests/docs_links_check.py: passed (16 Markdown files, 302 links).
    • tests/bidi_controls_check.py: passed (1,147 files).
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207):
    • Debug (--preset dev): startup_audio_pacing built (4.48s); ctest -R '^startup_audio_pacing$' skipped (return code 77, capability skip on headless node with no default render endpoint; 0/1 passed).
    • Release /O2 (--preset release): startup_audio_pacing built (1.89s); ctest -R '^startup_audio_pacing$' skipped (return code 77; 0/1 passed).

Findings (tests/startup_audio_pacing.cpp)

  1. Shared AudioSink across phases: main() passes the same AudioSink instance to both run_steady and run_bursty. Because AudioSink::r_ is cumulative, bursty reports combined counts (120 + 48 = 168 blocks, 80,640 frames) rather than the bursty phase alone. Constructing a fresh AudioSink per phase (or resetting state) would keep the two phase reports independent.
  2. Comment vs. actual audio totals: The header comment states "feeds the sink the same total amount of audio twice", whereas run_steady submits 120 blocks (1,200 ms) and run_bursty submits 8 * 6 = 48 blocks (480 ms).
  3. Minor: CoInitializeEx has no matching CoUninitialize() after sink is destroyed.
**@⁠tedin7** on GitHub · 2026-11-24 09:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#pullrequestreview-6036852025) · **reviewed** Technical peer-review of commit `8d062f33a7d40d0ed7c8aa3bb0c7da5e1180a5cb`: ### Verification - **Linux**: - `git diff --check origin/main...HEAD`: clean. - `tests/docs_links_check.py`: passed (16 Markdown files, 302 links). - `tests/bidi_controls_check.py`: passed (1,147 files). - **Windows Server 2025 (Build 26100, MSVC 14.44.35207)**: - **Debug (`--preset dev`)**: `startup_audio_pacing` built (`4.48s`); `ctest -R '^startup_audio_pacing$'` **skipped** (return code `77`, capability skip on headless node with no default render endpoint; `0/1` passed). - **Release `/O2` (`--preset release`)**: `startup_audio_pacing` built (`1.89s`); `ctest -R '^startup_audio_pacing$'` **skipped** (return code `77`; `0/1` passed). ### Findings (`tests/startup_audio_pacing.cpp`) 1. **Shared `AudioSink` across phases**: `main()` passes the same `AudioSink` instance to both `run_steady` and `run_bursty`. Because `AudioSink::r_` is cumulative, `bursty` reports combined counts (`120 + 48 = 168` blocks, `80,640` frames) rather than the bursty phase alone. Constructing a fresh `AudioSink` per phase (or resetting state) would keep the two phase reports independent. 2. **Comment vs. actual audio totals**: The header comment states *"feeds the sink the same total amount of audio twice"*, whereas `run_steady` submits `120` blocks (`1,200 ms`) and `run_bursty` submits `8 * 6 = 48` blocks (`480 ms`). 3. **Minor**: `CoInitializeEx` has no matching `CoUninitialize()` after `sink` is destroyed.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 09:53 UTC · original · reviewed

Technical retest & peer-review at commit 10009a948787e6caeb22aca0328ab2a11878f654:

Verification

  • Linux:
    • git diff --check origin/main...HEAD: clean.
    • tests/docs_links_check.py: passed (16 Markdown files, 302 links).
    • tests/bidi_controls_check.py: passed (1,147 tracked files).
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207):
    • Debug (--preset dev): startup_audio_pacing built in 4.07s; ctest -R '^startup_audio_pacing$' returned capability skip 77 (0/1 passed, 0.02s) on the headless node with no default render endpoint.
    • Release /O2 (--preset release): startup_audio_pacing built in 1.54s; ctest -R '^startup_audio_pacing$' returned capability skip 77 (0/1 passed, 0.02s).

Retest of Earlier Findings

  1. Per-phase counters: Resolved — run_steady and run_bursty now compute delta(before, after, ...) against a sink.report() snapshot taken before each phase, isolating blocks, frames, consumed, clock, drained_ms, rejected_full, and unsupported per phase.
  2. Block counts & header comment: Resolved — both phases now submit 120 blocks (total_blocks = 120, 20 * 6 = 120), matching the header comment, and run() fails if steady.frames != bursty.frames.
  3. CoUninitialize(): Resolved — AudioSink sink; lives inside run(), so it is destroyed before main() calls CoUninitialize().
**@⁠tedin7** on GitHub · 2026-11-24 09:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1368#pullrequestreview-6037048836) · **reviewed** Technical retest & peer-review at commit `10009a948787e6caeb22aca0328ab2a11878f654`: ### Verification - **Linux**: - `git diff --check origin/main...HEAD`: clean. - `tests/docs_links_check.py`: passed (16 Markdown files, 302 links). - `tests/bidi_controls_check.py`: passed (1,147 tracked files). - **Windows Server 2025 (Build 26100, MSVC 14.44.35207)**: - **Debug (`--preset dev`)**: `startup_audio_pacing` built in `4.07s`; `ctest -R '^startup_audio_pacing$'` returned capability skip `77` (`0/1 passed`, `0.02s`) on the headless node with no default render endpoint. - **Release `/O2` (`--preset release`)**: `startup_audio_pacing` built in `1.54s`; `ctest -R '^startup_audio_pacing$'` returned capability skip `77` (`0/1 passed`, `0.02s`). ### Retest of Earlier Findings 1. **Per-phase counters**: Resolved — `run_steady` and `run_bursty` now compute `delta(before, after, ...)` against a `sink.report()` snapshot taken before each phase, isolating `blocks`, `frames`, `consumed`, `clock`, `drained_ms`, `rejected_full`, and `unsupported` per phase. 2. **Block counts & header comment**: Resolved — both phases now submit `120` blocks (`total_blocks = 120`, `20 * 6 = 120`), matching the header comment, and `run()` fails if `steady.frames != bursty.frames`. 3. **`CoUninitialize()`**: Resolved — `AudioSink sink;` lives inside `run()`, so it is destroyed before `main()` calls `CoUninitialize()`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.