Skip to content

EmscriptenAudioWorkletNodeCreateOptions missing couple of options #23982

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

Open
RReverser opened this issue Mar 25, 2025 · 2 comments
Open

EmscriptenAudioWorkletNodeCreateOptions missing couple of options #23982

RReverser opened this issue Mar 25, 2025 · 2 comments

Comments

@RReverser
Copy link
Collaborator

EmscriptenAudioWorkletNodeCreateOptions has bindings for options of AudioWorkletNode itself, but AudioWorkletNode inherits from AudioNode which also accepts:

  • channelCount
  • channelCountMode
  • channelInterpretation

Being able to configure those is useful when you e.g. care about only one input audio channel and don't want the Web Audio system to produce garbage Float32Arrays for other channels that you're going to ignore anyway.

cc @juj

@juj
Copy link
Collaborator

juj commented Apr 3, 2025

Indeed, these are fields that I missed in the initial implementation. Fortunately the options are passed as a struct, so it should be possible to expand to add these. I can't make a promise that I would be able to get to adding these in a moment, as I am currently looking to fix other things, so if you want to take a stab at an implementation meanwhile, that would be cool.

@RReverser
Copy link
Collaborator Author

I can't make a promise that I would be able to get to adding these in a moment

Kind of the same, it should be a very simple fix just not getting around to it at the moment, so at least opened for tracking.

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

No branches or pull requests

2 participants