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

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

Issue 115413002: Enable platform echo cancellation through the AudioRecord path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « media/audio/fake_audio_manager.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_manager_mac.cc
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
index 2aa0ef53cc277a430c69ab9b8eedc5b138779496..be7dddd5bb68c23c830f0fd3592cd75ce274ae32 100644
--- a/media/audio/mac/audio_manager_mac.cc
+++ b/media/audio/mac/audio_manager_mac.cc
@@ -674,16 +674,20 @@ AudioParameters AudioManagerMac::GetPreferredOutputStreamParameters(
}
}
+ 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);
-
- if (channel_layout == CHANNEL_LAYOUT_UNSUPPORTED)
- params.SetDiscreteChannels(hardware_channels);
+ buffer_size,
+ AudioParameters::NO_EFFECTS);
return params;
}
« no previous file with comments | « media/audio/fake_audio_manager.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698