Open inglesuniversal opened 3 years 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.
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)