mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibWeb/WebAudio: Remove copy-pasted comments in DynamicsCompressorNode
This commit is contained in:
committed by
Alexander Kalenik
parent
9232dcbde5
commit
a95303de02
@@ -81,11 +81,9 @@ WebIDL::ExceptionOr<void> DynamicsCompressorNode::set_channel_count_mode(Binding
|
|||||||
WebIDL::ExceptionOr<void> DynamicsCompressorNode::set_channel_count(WebIDL::UnsignedLong channel_count)
|
WebIDL::ExceptionOr<void> DynamicsCompressorNode::set_channel_count(WebIDL::UnsignedLong channel_count)
|
||||||
{
|
{
|
||||||
if (channel_count > 2) {
|
if (channel_count > 2) {
|
||||||
// Return a NotSupportedError if 'max' is used
|
|
||||||
return WebIDL::NotSupportedError::create(realm(), "DynamicsCompressorNode does not support channel count greater than 2"_string);
|
return WebIDL::NotSupportedError::create(realm(), "DynamicsCompressorNode does not support channel count greater than 2"_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the mode is valid, call the base class implementation
|
|
||||||
return AudioNode::set_channel_count(channel_count);
|
return AudioNode::set_channel_count(channel_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user