mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
webaudio: Throw when setting invalid automationRate on AudioBufferSourceNode (#26469)
This commit is contained in:
parent
5c87fe940e
commit
201cdbab17
12 changed files with 56 additions and 22 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use dom_struct::dom_struct;
|
||||
use js::rust::HandleObject;
|
||||
use servo_media::audio::node::AudioNodeInit;
|
||||
use servo_media::audio::node::{AudioNodeInit, AudioNodeType};
|
||||
use servo_media::audio::param::ParamType;
|
||||
use servo_media::audio::stereo_panner::StereoPannerOptions as ServoMediaStereoPannerOptions;
|
||||
|
||||
|
@ -59,6 +59,7 @@ impl StereoPannerNode {
|
|||
window,
|
||||
context,
|
||||
node_id,
|
||||
AudioNodeType::StereoPannerNode,
|
||||
ParamType::Pan,
|
||||
AutomationRate::A_rate,
|
||||
*options.pan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue