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

Unified Diff: trunk/src/media/audio/mac/audio_manager_mac.cc

Issue 110303003: Revert 240548 "Enable platform echo cancellation through the Aud..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | « trunk/src/media/audio/fake_audio_manager.cc ('k') | trunk/src/media/audio/pulse/audio_manager_pulse.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/audio/mac/audio_manager_mac.cc
===================================================================
--- trunk/src/media/audio/mac/audio_manager_mac.cc (revision 240589)
+++ trunk/src/media/audio/mac/audio_manager_mac.cc (working copy)
@@ -674,21 +674,17 @@
}
}
- if (channel_layout == CHANNEL_LAYOUT_UNSUPPORTED)
- channel_layout = CHANNEL_LAYOUT_DISCRETE;
- else
- hardware_channels = ChannelLayoutToChannelCount(channel_layout);
-
AudioParameters params(
AudioParameters::AUDIO_PCM_LOW_LATENCY,
channel_layout,
- hardware_channels,
input_channels,
hardware_sample_rate,
16,
- buffer_size,
- AudioParameters::NO_EFFECTS);
+ buffer_size);
+ if (channel_layout == CHANNEL_LAYOUT_UNSUPPORTED)
+ params.SetDiscreteChannels(hardware_channels);
+
return params;
}
« no previous file with comments | « trunk/src/media/audio/fake_audio_manager.cc ('k') | trunk/src/media/audio/pulse/audio_manager_pulse.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698