Skip to content

Commit 186a11c

Browse files
committed
DestinationNode: do not unconditionally panic for channel count mode
1 parent 8be749b commit 186a11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/destination.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl AudioNode for AudioDestinationNode {
7474
// OfflineAudioContext, then the channel count mode cannot be changed.
7575
// An InvalidStateError exception MUST be thrown for any attempt to change the value.
7676
assert!(
77-
!self.registration.context().offline(),
77+
!self.registration.context().offline() || v == ChannelCountMode::Explicit,
7878
"InvalidStateError - AudioDestinationNode has channel count mode constraints",
7979
);
8080

0 commit comments

Comments
 (0)