aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-09-14 18:29:11 +0530
committerManish Goregaokar <manishsmail@gmail.com>2018-09-18 18:18:36 +0530
commite9be17995226b445ec9c83b9b21d84b4c87a0838 (patch)
tree8dec2b9af5b70340517038c1eb9be5c1ecec376b /components/script/dom
parentf3efd14975b7ba9947e1e387cd4e84c50b187d3e (diff)
downloadservo-e9be17995226b445ec9c83b9b21d84b4c87a0838.tar.gz
servo-e9be17995226b445ec9c83b9b21d84b4c87a0838.zip
Set default channel count for AnalyserNode to 2
This was deliberately changed (https://github.com/WebAudio/web-audio-api/pull/1397 ) but the tests have not been updated
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/analysernode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/analysernode.rs b/components/script/dom/analysernode.rs
index 50951021c43..27f2f27b386 100644
--- a/components/script/dom/analysernode.rs
+++ b/components/script/dom/analysernode.rs
@@ -38,7 +38,7 @@ impl AnalyserNode {
options: &AnalyserOptions,
) -> Fallible<(AnalyserNode, IpcReceiver<Block>)> {
let node_options = options.parent
- .unwrap_or(1, ChannelCountMode::Max,
+ .unwrap_or(2, ChannelCountMode::Max,
ChannelInterpretation::Speakers);
if options.fftSize > 32768 || options.fftSize < 32 ||