emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

EmscriptenAudioWorkletNodeCreateOptions missing couple of options

Open RReverser opened this issue 9 months ago • 2 comments

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

RReverser avatar Mar 25 '25 12:03 RReverser

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.

juj avatar Apr 03 '25 12:04 juj

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.

RReverser avatar Apr 06 '25 20:04 RReverser

i can work on this issue, any guidelines or should i just start figuring it out

nikitha-m avatar Oct 03 '25 05:10 nikitha-m

It should be fairly straightforward, but do give us a shout if you get stuck.

RReverser avatar Oct 03 '25 12:10 RReverser