OLD | NEW |
(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 = |
OLD | NEW |