Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPT fixes: channel splitter/merger error msg, offline ctx channel count mode #473

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

orottier
Copy link
Owner

Big win with the AudioNode tests because of the fixed panic in the destination node

  RESULTS:
  - # pass: 5199 (+190)
  - # fail: 640 (-19)
  - # type error issues: 62 (+8)

@orottier orottier requested a review from b-ma March 11, 2024 19:54
@@ -74,7 +74,7 @@ impl AudioNode for AudioDestinationNode {
// OfflineAudioContext, then the channel count mode cannot be changed.
// An InvalidStateError exception MUST be thrown for any attempt to change the value.
assert!(
!self.registration.context().offline(),
!self.registration.context().offline() || v == ChannelCountMode::Explicit,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot find where it is explained in the spec, maybe add something as comment ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, added. I also found a spec issue related to the channelCount. Will double check and raise an issue at the spec repo

@b-ma
Copy link
Collaborator

b-ma commented Mar 12, 2024

Apart my small comment, looks all good to me

@orottier orottier merged commit dbe3556 into main Mar 12, 2024
3 checks passed
@orottier orottier deleted the bugfix/wpt-fixes branch March 12, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants