angelo-wf / SnesJs

A SNES emulator, in javascript
MIT License
57 stars 27 forks source link

Issues playing back audio #4

Open inglesuniversal opened 2 years ago

inglesuniversal commented 2 years ago

console show deprecated audio scripting

audio sounds choppy on chrome

console.log warning:

[Deprecation] The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (https://bit.ly/audio-worklet)

angelo-wf commented 1 year ago

The ScriptProcessorNode is indeed deprecated, but my Javascript NES-emulator also uses it and audio sounds fine there. It being choppy is probably because it is simply not able to quite run at full speed.

the fact that full speed is basically nearly impossible to get with Javascript without trickery is also why I really haven't worked on this anymore (as evident by the readme and this reply being a year late). Note that another JS-based SNES-emulator (among other systems) is also being worked on and does seem to run at full speed, but is still in early stages (like not having audio yet): JSmoo.