Skip to content

Ojwb enable sound#135

Draft
mattgodbolt wants to merge 9 commits into
mainfrom
ojwb-enable-sound
Draft

Ojwb enable sound#135
mattgodbolt wants to merge 9 commits into
mainfrom
ojwb-enable-sound

Conversation

@mattgodbolt
Copy link
Copy Markdown
Owner

Based off #117 with a disgusted sequence of hacks and a patched jsbeeb. This isn't ready for prime time but @ojwb I wanted you to see that I spend another few hours trying to work around and found...this... at least... Draft for now, until I'm happy there's not something I should upstream differently in jsbeeb.

ojwb and others added 9 commits March 10, 2025 09:17
This patch does get us working sound, but during loading a modal
full-window error pops up:

Uncaught runtime errors:
ERROR
The operation was aborted.

Clicking the X in the top right continues to a working owlet.  I've
failed to work out where this is coming from.

Fixes #80
This adds a custom Vite middleware that handles audio worklets and sound files in
development mode, enabling audio support from jsbeeb to work correctly.

- Adds jsbeeb-worklet-middleware.js to serve worklet files and sound files
- Creates a smoothie-shim.js to mock the library interface in development
- Updates vite.config.js with necessary configuration for audio support

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants