You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EmscriptenAudioWorkletNodeCreateOptions missing couple of options #23982
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.
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.
Activity
juj commentedon 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 commentedon Apr 6, 2025
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.
nikitha-m commentedon Oct 3, 2025
i can work on this issue, any guidelines or should i just start figuring it out
RReverser commentedon Oct 3, 2025
It should be fairly straightforward, but do give us a shout if you get stuck.
fix: updated channelCount, mode and interpretation with proper types c…
Add missing options to EmscriptenAudioWorkletNodeCreateOptions (emscr…
Add missing options to EmscriptenAudioWorkletNodeCreateOptions (emscr…