mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -7,7 +7,7 @@ use std::f32;
|
|||
use dom_struct::dom_struct;
|
||||
use js::rust::HandleObject;
|
||||
use servo_media::audio::gain_node::GainNodeOptions;
|
||||
use servo_media::audio::node::AudioNodeInit;
|
||||
use servo_media::audio::node::{AudioNodeInit, AudioNodeType};
|
||||
use servo_media::audio::param::ParamType;
|
||||
|
||||
use crate::dom::audionode::AudioNode;
|
||||
|
@ -51,6 +51,7 @@ impl GainNode {
|
|||
window,
|
||||
context,
|
||||
node.node_id(),
|
||||
AudioNodeType::GainNode,
|
||||
ParamType::Gain,
|
||||
AutomationRate::A_rate,
|
||||
*options.gain, // default value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue