-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Playing sound hangs the VM in Safari #286
Comments
Thanks for reporting this! I'll look into getting sound working on safari. There seem to be other problems in addition to the one you found as well. |
Fixes copy#286 Safari 12 does not support AudioBuffer#copyToChannel yet.
Fixes copy#286 Safari 12 does not support AudioBuffer#copyToChannel yet.
Fixes copy#286 Safari 12 does not support AudioBuffer#copyToChannel yet.
Here's a PR that fixes the I still couldn't get sound to work on my friend's iPad, but I couldn't get some kind of developer tools to connect to it yet to see what the problem is. Hey @dpinela mind if I ask you to try out this PR and see if the sound file plays alright on your macOS? |
Tried your PR. Now it no longer crashes, and it does try to play sound, but it's extremely choppy, to the point where most of the time you just don't hear anything. Also, after playing sound (or trying to), it consistently gets into a state where some animations only update when you move the mouse, like opening a menu or minimising a window. This last part happens even in Chrome, where sound otherwise works fine (I wonder if it's actually a separate issue?) |
Ah I see. I'll try and get hold of a mac to work on it one day, but that day probably won't be soon. (Pull requests from anyone are welcome!)
I originally thought it was a separate issue unrelated to audio, but I checked just now and it only enters this state after it starts playing audio, and it doesn't happen when I open Windows Media Player with v86's audio device disabled. Well, it could also be a problem unrelated to audio, but which, wasn't revealed until audio was implemented and could be played by Windows Media Player. I have vague memories of seeing this behaviour outside of Windows Media Player when running v86 in debug mode, so it might be triggered by slow performance instead. (But this was from a year ago and I can't remember exactly if that was the case). But whatever's causing it, yes I'll file this as a separate issue. Thanks for your help @dpinela ! |
Fixes #286 Safari 12 does not support AudioBuffer#copyToChannel yet.
How to reproduce: Open the Windows 98 demo linked in the README. Open the WAV file in the desktop, or, alternatively, try to play a sound from the Sound control panel.
What should happen: Sound plays.
What happens: The VM hangs. The following error comes up in the console:
The problem line in speaker.js:
Some research indicates that the problem is that Safari doesn't support the copyToChannel method on AudioBuffer.
Browser: Safari 12.1
OS: macOS 10.14.4
The text was updated successfully, but these errors were encountered: