Skip to content

Conversation

juj
Copy link
Collaborator

@juj juj commented Sep 22, 2025

Remove the redundant Web Audio Worklet bootstrap processor node after WebAudio/web-audio-api#2456 has been fixed.

var currentFrame;
var currentTime;
var sampleRate;
var port;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like very generic name. I wonder if we move these to audio-worklet-externs.js?

assert(varargs);
#endif
(audioContext ? EmAudio[audioContext].audioWorklet.bootstrapMessage.port : messagePort).postMessage({'_wsc': funcPtr, args: readEmAsmArgs(sigPtr, varargs) });
(audioContext ? EmAudio[audioContext].audioWorklet.port : messagePort).postMessage({'_wsc': funcPtr, args: readEmAsmArgs(sigPtr, varargs) });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The var messagePort; was deleted from audio_worklet.js but I don't see it being added elsewhere. Should it still be referenced here, or should it be just port (i.e. globalThis.port)?

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Do we not need to wait until we drop support for older browser? Or are audio worklets so new that we just assume evergreen browsers?

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

Successfully merging this pull request may close these issues.

2 participants