mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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::node::{AudioNodeInit, AudioNodeMessage};
|
||||
use servo_media::audio::node::{AudioNodeInit, AudioNodeMessage, AudioNodeType};
|
||||
use servo_media::audio::oscillator_node::{
|
||||
OscillatorNodeMessage, OscillatorNodeOptions as ServoMediaOscillatorOptions,
|
||||
OscillatorType as ServoMediaOscillatorType,
|
||||
|
@ -60,6 +60,7 @@ impl OscillatorNode {
|
|||
window,
|
||||
context,
|
||||
node_id,
|
||||
AudioNodeType::OscillatorNode,
|
||||
ParamType::Frequency,
|
||||
AutomationRate::A_rate,
|
||||
440.,
|
||||
|
@ -70,6 +71,7 @@ impl OscillatorNode {
|
|||
window,
|
||||
context,
|
||||
node_id,
|
||||
AudioNodeType::OscillatorNode,
|
||||
ParamType::Detune,
|
||||
AutomationRate::A_rate,
|
||||
0.,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue