Did something change in Web Audio API re AudioWorklet that affects playback?

1,594 views
Skip to first unread message

guest271314

unread,
Feb 3, 2024, 11:07:14 PM2/3/24
to media-dev
This https://guest271314.github.io/AudioWorkletStream/ (plnkr https://plnkr.co/edit/nECtUZ?preview) used to work on Firefox and Chromium. No longer plays back audio on Version 123.0.6279.0 (Developer Build) (64-bit), still plays audio on Firefox Nightly 124.0a1 (2024-02-03) (64-bit).

guest271314

unread,
Feb 4, 2024, 2:43:49 AM2/4/24
to media-dev, guest271314
channelCount: 2 no longer works for AudioWorkletNodeOptions on Chromium 123, outputChannelCount: [2, 2] does. Firefox 124 plays back with channelCount: 2 for AudioWorkletNodeOptions.

guest271314

unread,
Feb 13, 2024, 9:53:33 PM2/13/24
to Thomas Guilbert, media-dev
AudioWorkletNode is an AudioNode per the specification. AudioNodes have a channelCount attribute https://webaudio.github.io/web-audio-api/#AudioNode-attributes however that appears to be inapplicable for the AudioWorkletNode.

I couldn't figure that out from the specification alone. I read some Stackoverflow questions and answers and rested to figure out outputChannelCount was necessary whre channelCount used to work.

It might be helpful to add a note to make it clear that channelCount is inapplicable for AudioWorkletNode, and outputChannelCount must be used to set N channels for disambiguity?

Thanks.

On Tue, Feb 13, 2024 at 3:51 PM Thomas Guilbert <tgui...@google.com> wrote:
Hello,

Yes there is a breakage, which is tracked by https://issues.chromium.org/issues/324293899#comment12.

Thanks for bringing this up,
Thomas

--
You received this message because you are subscribed to the Google Groups "media-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to media-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/media-dev/fb840a6b-478d-4a27-953d-2c602c1d78b9n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages