diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-14 18:29:11 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-18 18:18:36 +0530 |
commit | e9be17995226b445ec9c83b9b21d84b4c87a0838 (patch) | |
tree | 8dec2b9af5b70340517038c1eb9be5c1ecec376b /components/script/dom | |
parent | f3efd14975b7ba9947e1e387cd4e84c50b187d3e (diff) | |
download | servo-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.rs | 2 |
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 || |