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

Side by Side Diff: content/renderer/media/webrtc_audio_device_impl.cc

Issue 12440027: Do not pass the string device_id via IPC message to create an audio input stream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the nits. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/webrtc_audio_device_impl.h" 5 #include "content/renderer/media/webrtc_audio_device_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/win/windows_version.h" 10 #include "base/win/windows_version.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 SetMicrophoneVolume(new_mic_level); 213 SetMicrophoneVolume(new_mic_level);
214 } 214 }
215 } 215 }
216 216
217 void WebRtcAudioDeviceImpl::SetCaptureFormat( 217 void WebRtcAudioDeviceImpl::SetCaptureFormat(
218 const media::AudioParameters& params) { 218 const media::AudioParameters& params) {
219 DVLOG(1) << "WebRtcAudioDeviceImpl::SetCaptureFormat()"; 219 DVLOG(1) << "WebRtcAudioDeviceImpl::SetCaptureFormat()";
220 input_audio_parameters_ = params; 220 input_audio_parameters_ = params;
221 } 221 }
222 222
223 void WebRtcAudioDeviceImpl::OnCaptureDeviceStopped() {
224 DVLOG(1) << "WebRtcAudioDeviceImpl::OnCaptureDeviceStopped()";
225 }
226
227 int32_t WebRtcAudioDeviceImpl::ChangeUniqueId(const int32_t id) { 223 int32_t WebRtcAudioDeviceImpl::ChangeUniqueId(const int32_t id) {
228 NOTIMPLEMENTED(); 224 NOTIMPLEMENTED();
229 return -1; 225 return -1;
230 } 226 }
231 227
232 int32_t WebRtcAudioDeviceImpl::TimeUntilNextProcess() { 228 int32_t WebRtcAudioDeviceImpl::TimeUntilNextProcess() {
233 // Calculate the number of milliseconds until this module wants its 229 // Calculate the number of milliseconds until this module wants its
234 // Process method to be called. 230 // Process method to be called.
235 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); 231 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_);
236 int64 time_until_next = 232 int64 time_until_next =
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 NOTIMPLEMENTED(); 853 NOTIMPLEMENTED();
858 return -1; 854 return -1;
859 } 855 }
860 856
861 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { 857 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const {
862 NOTIMPLEMENTED(); 858 NOTIMPLEMENTED();
863 return -1; 859 return -1;
864 } 860 }
865 861
866 } // namespace content 862 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698