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
This commit is contained in:
Manish Goregaokar 2018-09-14 18:29:11 +05:30
parent f3efd14975
commit e9be179952
5 changed files with 8 additions and 27 deletions

View file

@ -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 ||