Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook up sound from jsbeeb #117

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ojwb
Copy link
Collaborator

@ojwb ojwb commented Jan 22, 2025

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 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 mattgodbolt#80
@ojwb
Copy link
Collaborator Author

ojwb commented Jan 22, 2025

I've marked this as a draft because the error needs fixing, but I'm not really a JS dev and I'm stumped as to how to debug it - I don't see anything in the browser's JS console. @mattgodbolt Any ideas?

The styling of the "audio-warning" probably needs sorting out too, but that's only cosmetic at least.

@mattgodbolt
Copy link
Owner

I'll have a poke about at the weekend! Thanks for taking a look

@mattgodbolt
Copy link
Owner

Probably worth a chat with @8bitkick as to whether no sound was a very deliberate choice too

@ojwb
Copy link
Collaborator Author

ojwb commented Jan 24, 2025

Any thoughts, Dom?

FWIW I doubt it was deliberate - even just thinking about writing code for BBCMicrobot, the bot used to support sound and that code is still there if you select jsbeeb as the emulator to use, but sound has not yet been implemented when using beebjit as the emulator, which is the hard-wired default.

The main obstacle there is lack of support for recording audio from a headless beebjit - I did try to implement that but the patch had some problems that I probably needed help to resolve and sadly I never got any response: scarybeasts/beebjit#48

@ojwb
Copy link
Collaborator Author

ojwb commented Jan 28, 2025

Another data point - 8bitkick's old editor supported sound from the emulator.

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.

Sound?
2 participants