Skip to content
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

Please implement createScriptProcessor() #974

Open
Saintenr opened this issue Mar 24, 2021 · 2 comments
Open

Please implement createScriptProcessor() #974

Saintenr opened this issue Mar 24, 2021 · 2 comments

Comments

@Saintenr
Copy link

Hello Guys great work,

Im creating a project with cross device support and need the method createScriptProcessor().

Is it possible to implement this in a short term.

thanks for your feedback :)

@chrisguttandin
Copy link
Owner

Hi @Saintenr, I'm sorry but adding the ScriptProcessorNode is not really in line with the goals of this library. It's deprecated and has been replaced by the AudioWorklet. The goal of standardized-audio-context is to allow you to program against the most recent API.

If you use an AudioWorklet with standardized-audio-context it will automatically use a ScriptProcessorNode under the hood in case the browser doesn't yet support the AudioWorklet. Right now that is only necessary when using Safari.

@thecynicalpaul
Copy link

Hey @Saintenr, just a heads up - if you are trying to get AudioWorklet working similarly to how ScriptPorcessorNode used to, it might be a bit tricky, and you'd have to utilize RingBuffer and memory sharing. Luckily there is an open-source art platform, which has a sound module that does exactly that: https://github.com/processing/p5.js-sound. A bit of digging, and you'll gain a better picture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants