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 f9a25ab commit 8cf3b8fCopy full SHA for 8cf3b8f
src/node/destination.rs
@@ -61,7 +61,12 @@ impl AudioNode for AudioDestinationNode {
61
self.channel_config.set_count(v);
62
}
63
fn set_channel_count_mode(&self, _v: ChannelCountMode) {
64
- panic!("InvalidStateError: AudioDestinationNode has channel count mode constraints");
+ // [spec] If the AudioDestinationNode is the destination node of an
65
+ // OfflineAudioContext, then the channel count mode cannot be changed.
66
+ // An InvalidStateError exception MUST be thrown for any attempt to change the value.
67
+ if self.registration.context().offline() {
68
+ panic!("InvalidStateError: AudioDestinationNode has channel count mode constraints");
69
+ }
70
71
72
0 commit comments