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

Side by Side Diff: content/renderer/media/webrtc_audio_capturer.cc.rej

Issue 12102004: Renderer side audio device change wip... Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 diff a/content/renderer/media/webrtc_audio_capturer.cc b/content/renderer/media/ webrtc_audio_capturer.cc (rejected hunks)
2 @@ -173,10 +174,14 @@ void WebRtcAudioCapturer::ResumeBuffering() {
3
4 bool WebRtcAudioCapturer::Initialize() {
5 DVLOG(1) << "WebRtcAudioCapturer::Initialize()";
6 +
7 + RendererAudioHardwareConfig* hardware_config =
8 + RenderThreadImpl::current()->GetAudioHardwareConfig();
9 +
10 // Ask the browser for the default audio input hardware sample-rate.
11 // This request is based on a synchronous IPC message.
12 // TODO(xians): we should ask for the native sample rate of a specific device .
13 - int sample_rate = GetAudioInputSampleRate();
14 + int sample_rate = hardware_config->GetInputSampleRate();
15 DVLOG(1) << "Audio input hardware sample rate: " << sample_rate;
16 UMA_HISTOGRAM_ENUMERATION("WebRTC.AudioInputSampleRate",
17 sample_rate, media::kUnexpectedAudioSampleRate);
18 @@ -194,7 +199,8 @@ bool WebRtcAudioCapturer::Initialize() {
19 // Ask the browser for the default number of audio input channels.
20 // This request is based on a synchronous IPC message.
21 // TODO(xians): we should ask for the layout of a specific device.
22 - media::ChannelLayout channel_layout = GetAudioInputChannelLayout();
23 + media::ChannelLayout channel_layout =
24 + hardware_config->GetInputChannelLayout();
25 DVLOG(1) << "Audio input hardware channels: " << channel_layout;
26
27 media::AudioParameters::Format format =
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_capturer.cc ('k') | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698