Commit 617db1d8 authored by xians@chromium.org's avatar xians@chromium.org

Make WebAudio output as stereo as default.


NOTRY=true

Review URL: https://codereview.chromium.org/210713005

git-svn-id: svn://svn.chromium.org/blink/trunk@169964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a49f4fec
...@@ -418,9 +418,8 @@ PassRefPtr<MediaStreamAudioSourceNode> AudioContext::createMediaStreamSource(Med ...@@ -418,9 +418,8 @@ PassRefPtr<MediaStreamAudioSourceNode> AudioContext::createMediaStreamSource(Med
PassRefPtr<MediaStreamAudioDestinationNode> AudioContext::createMediaStreamDestination() PassRefPtr<MediaStreamAudioDestinationNode> AudioContext::createMediaStreamDestination()
{ {
// FIXME: Add support for an optional argument which specifies the number of channels. // Set number of output channels to stereo by default.
// FIXME: The default should probably be stereo instead of mono. return MediaStreamAudioDestinationNode::create(this, 2);
return MediaStreamAudioDestinationNode::create(this, 1);
} }
PassRefPtr<ScriptProcessorNode> AudioContext::createScriptProcessor(ExceptionState& exceptionState) PassRefPtr<ScriptProcessorNode> AudioContext::createScriptProcessor(ExceptionState& exceptionState)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment