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
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.
EmscriptenAudioWorkletNodeCreateOptions
has bindings for options ofAudioWorkletNode
itself, butAudioWorkletNode
inherits fromAudioNode
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
Float32Array
s for other channels that you're going to ignore anyway.cc @juj
The text was updated successfully, but these errors were encountered: