Skip to content

Prepare paused PCM seeks before audible resume - #465

Draft
tamashi095 wants to merge 9 commits into
codex/dx-semantic-writerfrom
codex/dx-paused-seek-ready
Draft

Prepare paused PCM seeks before audible resume#465
tamashi095 wants to merge 9 commits into
codex/dx-semantic-writerfrom
codex/dx-paused-seek-ready

Conversation

@tamashi095

@tamashi095 tamashi095 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Paused seeks could acknowledge a new generation while old PCM still occupied the engine and shared queues. Resuming could then discard those blocks and underrun before target PCM arrived. The web host now applies an admitted source seek on its exclusive consumer without rendering or advancing time, and EngineFeed.prepareSeek() awaits that preparation while the AudioContext is suspended. Callers can refill current-generation PCM before audible resume.

The existing feed control port preserves exact generation/frame/epoch identity, typed refusal, supersession, close and timeout behavior. Rust preparation remains bounded and allocation/free-free; native queued-seek semantics and the public web ABI are unchanged. This PR is stacked on codex/dx-semantic-writer.

Validation: the old full-queue first-quantum discriminator is RED; canonical packed Chromium preparation is GREEN with exact first target planes, unchanged suspended clocks and zero underruns. Focused Rust/SDK tests and allocation checks pass. Final ordinary qualification33962335128 passes every job at777fb0ef, including SDK package, canonical artifacts, and Chromium/Firefox/WebKit check-matrix with mutation proofs. Dedicated independent Astra medium review: PASS. The reviewed immutable SDK archive retains source175755e9 and SHA2560df6ce51f2771c246f0b00932199bcc20c85a2d10e371e99f247eff9d206c906; adapter/app adoption is separate.

Closes #457.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant