Is it possible to create a soothing hydrogen sound generator using the web audio API, or am I missing something because of its limitations? I noticed there is no onbufferend or onrequestmoredata functionality, only onended from AudioBufferSourceNode. Can someone confirm if what I'm trying to achieve is feasible?
stackoverflow raised an issue about adding more details, but since my post mainly consists of code, I don't have additional information to provide.
Edit two: Buffer size increased (unnecessarily) and fillAudioBuffer functions offloaded from the main thread. This process works, even though I didn't need to do this in my C++ version. Surprisingly, JavaScript seems slower than expected.