Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1590)

Unified Diff: content/renderer/media/media_stream_audio_processor.cc

Issue 200343002: trivial change to remove the hard coding to mono as the output channel layout in MSAP. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_audio_processor.cc
diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
index 4c1a2c90ab299c27846cebd1c56e730cc9f0f22a..11e889259c0045346b9e5714ade5649ef5aa6fdf 100644
--- a/content/renderer/media/media_stream_audio_processor.cc
+++ b/content/renderer/media/media_stream_audio_processor.cc
@@ -376,7 +376,8 @@ void MediaStreamAudioProcessor::InitializeCaptureConverter(
const int sink_sample_rate = audio_processing_ ?
kAudioProcessingSampleRate : source_params.sample_rate();
const media::ChannelLayout sink_channel_layout = audio_processing_ ?
- media::CHANNEL_LAYOUT_MONO : source_params.channel_layout();
+ media::GuessChannelLayout(kAudioProcessingNumberOfChannel) :
+ source_params.channel_layout();
// WebRtc AudioProcessing requires 10ms as its packet size. We use this
// native size when processing is enabled. While processing is disabled, and
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698