We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac335d commit 3d12566Copy full SHA for 3d12566
src/node/destination.rs
@@ -66,14 +66,16 @@ impl AudioNode for AudioDestinationNode {
66
self.channel_config.set_count(v);
67
}
68
69
- fn set_channel_count_mode(&self, _v: ChannelCountMode) {
+ fn set_channel_count_mode(&self, v: ChannelCountMode) {
70
// [spec] If the AudioDestinationNode is the destination node of an
71
// OfflineAudioContext, then the channel count mode cannot be changed.
72
// An InvalidStateError exception MUST be thrown for any attempt to change the value.
73
assert!(
74
!self.registration.context().offline(),
75
"InvalidStateError - AudioDestinationNode has channel count mode constraints",
76
);
77
+
78
+ self.channel_config.set_count_mode(v);
79
80
81
0 commit comments