Skip to content

feat: add AudioContext sample playback#10

Merged
britle20 merged 2 commits into
developfrom
feat/4-audio-context-sample-playback
Jun 1, 2026
Merged

feat: add AudioContext sample playback#10
britle20 merged 2 commits into
developfrom
feat/4-audio-context-sample-playback

Conversation

@britle20

Copy link
Copy Markdown
Collaborator

Summary

Closes #4.

Adds a browser Web Audio engine for loading bundled drum samples, decoding them into a runtime AudioBuffer cache, and triggering one-shot playback from a small typed UI-facing API.

Changes

  • Added BrowserAudioEngine with AudioContext lifecycle, bundled sample fetch/decode, runtime buffer caching, and one-shot playback using fresh AudioBufferSourceNode instances.
  • Added bundled sample metadata and four temporary synthetic wav samples for kick, snare, closed hi-hat, and open hi-hat.
  • Added a minimal SamplePlaybackPanel for manual verification through user-triggered load/play actions.
  • Added tests for bundled sample metadata.
  • Updated docs and PLANS.md for AudioContext and Sample Playback #4.

Testing

Notes / Limitations

  • Manual listening still needs browser review because this environment cannot confirm audible output.
  • The four wav files are synthetic placeholders for this task only; future sample work can replace or expand them.
  • No sequenced playback, lookahead scheduler, drum sequencer UI, piano roll UI, sample import, mixer, or effects are included.

@britle20 britle20 merged commit 49c4c32 into develop Jun 1, 2026
1 check passed
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