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

No audio when using Mozilla Firefox #240

Open
UrkiMimi opened this issue Oct 2, 2023 · 7 comments
Open

No audio when using Mozilla Firefox #240

UrkiMimi opened this issue Oct 2, 2023 · 7 comments

Comments

@UrkiMimi
Copy link

UrkiMimi commented Oct 2, 2023

I noticed that the audio is absent in Firefox when using any of the emulated machines. Chromium and Safari both work fine for me but Firefox straight up won't play any audio when it should. Ex. System alert sound, Platinum Sounds in Mac OS 9, etc

@that-ben
Copy link

that-ben commented Oct 2, 2023

When the emulator is starting up, try to click a couple times in the canvas (where the graphics are drawn). I remember this happening a couples time to me too. It's kind of random. Try to reboot your computer, launch Firefox and try again, see if the audio comes back. It always ends up coming back for me, but I agree that sometimes it just stops playing audio for no reason (tab is not muted and audio playback settings are not disabled).

@kutulhu
Copy link

kutulhu commented Apr 30, 2024

Happens to me, too (only in Firefox). It worked the first time, then never again. Tried removing the site cache and some other things but it just doesn't want to work anymore. I wonder if it's something to do with permissions? Though the site never appears to be muted.

@parkerlreed
Copy link

parkerlreed commented May 8, 2024

Firefox blocks auto playing audio without user interaction.

That's why randomly clicking while it's loading sometimes fixes it.

A blanket solution is allowing auto playing audio in settings but then that allows any website to start playing video/audio at will.

image

Infinite Mac could also add a "Start emulator" button that would allow it to function.

@that-ben
Copy link

that-ben commented May 8, 2024

The "start emulator" play button kind of solution is what ARCHIVE.ORG does and a few WebGL games online do that too so that full screen and cursor capture requests work (and audio).

@mihaip
Copy link
Owner

mihaip commented May 9, 2024

At least in Chrome (which has the same requirement for user interaction to allow audio playback), if you go to infinitemac.org and then click "Run" on a machine, sound will work (most easily tested with Mini vMac-based machines, since it plays a startup chime). Firefox doesn't appear to do that, which seems like a limitation or bug on its part.

@parkerlreed
Copy link

parkerlreed commented Sep 12, 2024

Audio has stopped working completely even with "Allow audio and video" enabled when using version 130

EDIT: Randomly started working. Not sure what I did. I upped the resolution of the machine for a game but that was it.

@that-ben
Copy link

that-ben commented Sep 12, 2024

@parkerlreed You have to click at least once before it starts playing its first audio chunk otherwise the browser might think you are not interested in hearing sounds from that web page. I say "at least once" because sometimes the click is not registered if there's lag, so usually what I do is I spam-click the emulator canvas immediately after it starts. This ensures that sound will be playing further in the emulation.

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

No branches or pull requests

5 participants