mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add constraints for PannerNode
This commit is contained in:
parent
0f66f17001
commit
7d5b4b204c
1 changed files with 10 additions and 0 deletions
|
@ -213,6 +213,11 @@ impl AudioNodeMethods for AudioNode {
|
||||||
return Err(Error::IndexSize);
|
return Err(Error::IndexSize);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
EventTargetTypeId::AudioNode(AudioNodeTypeId::PannerNode) => {
|
||||||
|
if value > 2 {
|
||||||
|
return Err(Error::NotSupported)
|
||||||
|
}
|
||||||
|
}
|
||||||
// XXX We do not support any of the other AudioNodes with
|
// XXX We do not support any of the other AudioNodes with
|
||||||
// constraints yet. Add more cases here as we add support
|
// constraints yet. Add more cases here as we add support
|
||||||
// for new AudioNodes.
|
// for new AudioNodes.
|
||||||
|
@ -246,6 +251,11 @@ impl AudioNodeMethods for AudioNode {
|
||||||
return Err(Error::InvalidState);
|
return Err(Error::InvalidState);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
EventTargetTypeId::AudioNode(AudioNodeTypeId::PannerNode) => {
|
||||||
|
if value == ChannelCountMode::Max {
|
||||||
|
return Err(Error::NotSupported)
|
||||||
|
}
|
||||||
|
}
|
||||||
// XXX We do not support any of the other AudioNodes with
|
// XXX We do not support any of the other AudioNodes with
|
||||||
// constraints yet. Add more cases here as we add support
|
// constraints yet. Add more cases here as we add support
|
||||||
// for new AudioNodes.
|
// for new AudioNodes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue