Permalink
Browse files

Set default channel count for AnalyserNode to 2

This was deliberately changed
(WebAudio/web-audio-api#1397 ) but the tests
have not been updated
  • Loading branch information...
Manishearth committed Sep 14, 2018
1 parent db4d7e3 commit e92f144d9ab37dfef08951416b6fbeed43bac39e
@@ -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 ||
@@ -654035,7 +654035,7 @@
"support"
],
"webaudio/the-audio-api/the-analysernode-interface/ctor-analyser.html": [
"4e27f842ddeda3e2bdd78da7b8ee3f67062d1a9f",
"a9aa4831516c6a5cefa7c8b4f67f3ef246d24777",
"testharness"
],
"webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-basic.html": [
@@ -654067,7 +654067,7 @@
"testharness"
],
"webaudio/the-audio-api/the-analysernode-interface/test-analysernode.html": [
"52d3829cff3dfceef64a34669bc8e0d6e08883a9",
"a8b5a7154e94479460c1085c6b5cb584e9b6976c",
"testharness"
],
"webaudio/the-audio-api/the-audiobuffer-interface/.gitkeep": [

This file was deleted.

Oops, something went wrong.
@@ -32,7 +32,7 @@
prefix: prefix,
numberOfInputs: 1,
numberOfOutputs: 1,
channelCount: 1,
channelCount: 2,
channelCountMode: 'max',
channelInterpretation: 'speakers'
});
@@ -27,8 +27,8 @@
assert_equals(
analyser.channelCount,
1,
"analyser node has 1 input channels by default"
2,
"analyser node has 2 input channels by default"
);
assert_equals(
analyser.channelCountMode,
@@ -131,8 +131,8 @@
var analyser = new AnalyserNode(context);
assert_equals(
analyser.channelCount,
1,
"analyser node has 1 input channels by default"
2,
"analyser node has 2 input channels by default"
);
assert_equals(
analyser.channelCountMode,

0 comments on commit e92f144

Please sign in to comment.