Support per-playback configuration in play(options) - #236
Merged
Merged
Conversation
ctoth
force-pushed
the
feat/232-play-options
branch
from
September 13, 2026 16:30
48476ed to
3e3b6cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shared Sounds can now accept per-invocation volume, playback rate, loop count, and spatial settings through
play(options). Overrides are applied before source start and preserve source defaults and other voices. Group playback preflights every member; random and ordered selection retain their existing behavior. Direct Playback, sprite children, synths, and live sources use the same options, with unsupported controls rejected explicitly.Adds validation before preparation, cleanup on preparation/start failures, public TypeScript examples, and regressions that inspect configuration at source start and render scheduled fades and sprite boundaries with the native audio backend.
Closes #232
Validation:
npm run buildpassed, including published-package type checks and bundle checks (TypeDoc reported 35 warnings).npm run ci:testpassed: 92 files, 1,231 tests, no type errors.npx tsc --noEmit -p tsconfig.play-options.jsonpassed for the affected test files.npm run lintandgit diff --checkpassed.