whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
442 stars 57 forks source link

No sound until virtual power button is pressed #29

Open mi7chy opened 4 years ago

mi7chy commented 4 years ago

Wasn't getting any sound on Chrome, Microsoft Edge or Samsung Internet mobile browsers then discovered that virtual power button has to be pressed to get sound working. Any way to get this fixed otherwise everything else is working great so far. Thank you.

whscullin commented 4 years ago

Unfortunately most browsers don't allow what's considered "autoplay" of sound when opening a web page, so you have to do some sort of user interaction before the page is allowed to play sound. The only solution I've been able to think of is requiring a click through before the emulator starts, at least in the case where sound playback is being blocked.