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

The ScriptProcessorNode is deprecated #39

Open
Cerawia opened this issue Jul 14, 2021 · 3 comments
Open

The ScriptProcessorNode is deprecated #39

Cerawia opened this issue Jul 14, 2021 · 3 comments

Comments

@Cerawia
Copy link

Cerawia commented Jul 14, 2021

Hello, nice work! 👍

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

This message appears on Chrome dev console. Should I be worried? Thanks!

@hosnar
Copy link

hosnar commented Aug 2, 2021

I would also like to know this. Thanks!

@Cabritone
Copy link

Do you have any plans to migrate the lib to use the AudioWorkletNode?

@DASMACHETE
Copy link

DASMACHETE commented Aug 3, 2023

Hi iam having the same issue, maybe somebody tried to fix that warning?

So i think the code that needs to be modified is in the index.js at 15859:

this.processor = this.context.createScriptProcessor(0, 1, 1);

      // Add all buffers from LAME into an array.
      this.processor.onaudioprocess = function (event) {
        if (_this.timerToStart) {
          return;
        }

        // Send microphone data to LAME for MP3 encoding while recording.
        _this.lameEncoder.encode(event.inputBuffer.getChannelData(0));
      };


I found some infos how to migrate it but i dont know how to do it:
https://stackoverflow.com/questions/68007500/how-to-migrate-to-audioworkletnode-from-scriptprocessornode

Maybe someone can make it work.

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

4 participants