AudioNode.channelCount = 0 shoudl throw NotSupportedError

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
3 years ago
3 years ago

People

(Reporter: padenot, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Comment 1

3 years ago
What do you expect ? AudioNode.channelCount = 0 already throws NotSupportedError :

>  virtual void SetChannelCount(uint32_t aChannelCount, ErrorResult& aRv)
>  {
>    if (aChannelCount == 0 ||
>        aChannelCount > WebAudioUtils::MaxChannelCount) {
>      aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
>      return;
>    }
>    mChannelCount = aChannelCount;
>    SendChannelMixingParametersToStream();
>  }
Flags: needinfo?(padenot)
(Reporter)

Comment 2

3 years ago
Ah well we're already doing the right thing, then, closing.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(padenot)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.