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

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

Issue 8171015: Rename RenderThread to RenderThreadImpl (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/string_util.h" 7 #include "base/string_util.h"
8 #include "content/renderer/render_thread.h" 8 #include "content/renderer/render_thread_impl.h"
9 #include "media/audio/audio_util.h" 9 #include "media/audio/audio_util.h"
10 10
11 static const int64 kMillisecondsBetweenProcessCalls = 5000; 11 static const int64 kMillisecondsBetweenProcessCalls = 5000;
12 static const char kVersion[] = "WebRTC AudioDevice 1.0.0.Chrome"; 12 static const char kVersion[] = "WebRTC AudioDevice 1.0.0.Chrome";
13 13
14 WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl() 14 WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()
15 : ref_count_(0), 15 : ref_count_(0),
16 render_loop_(base::MessageLoopProxy::current()), 16 render_loop_(base::MessageLoopProxy::current()),
17 audio_transport_callback_(NULL), 17 audio_transport_callback_(NULL),
18 input_buffer_size_(0), 18 input_buffer_size_(0),
19 output_buffer_size_(0), 19 output_buffer_size_(0),
20 input_channels_(0), 20 input_channels_(0),
21 output_channels_(0), 21 output_channels_(0),
22 input_sample_rate_(0), 22 input_sample_rate_(0),
23 output_sample_rate_(0), 23 output_sample_rate_(0),
24 input_delay_ms_(0), 24 input_delay_ms_(0),
25 output_delay_ms_(0), 25 output_delay_ms_(0),
26 last_error_(AudioDeviceModule::kAdmErrNone), 26 last_error_(AudioDeviceModule::kAdmErrNone),
27 last_process_time_(base::TimeTicks::Now()), 27 last_process_time_(base::TimeTicks::Now()),
28 session_id_(0), 28 session_id_(0),
29 initialized_(false), 29 initialized_(false),
30 playing_(false), 30 playing_(false),
31 recording_(false) { 31 recording_(false) {
32 VLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()"; 32 VLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()";
33 DCHECK(RenderThread::current()) << 33 DCHECK(RenderThreadImpl::current()) <<
34 "WebRtcAudioDeviceImpl must be constructed on the render thread"; 34 "WebRtcAudioDeviceImpl must be constructed on the render thread";
35 } 35 }
36 36
37 WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl() { 37 WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl() {
38 VLOG(1) << "WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl()"; 38 VLOG(1) << "WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl()";
39 if (playing_) 39 if (playing_)
40 StopPlayout(); 40 StopPlayout();
41 if (recording_) 41 if (recording_)
42 StopRecording(); 42 StopRecording();
43 if (initialized_) 43 if (initialized_)
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 } 923 }
924 924
925 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { 925 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const {
926 NOTIMPLEMENTED(); 926 NOTIMPLEMENTED();
927 return -1; 927 return -1;
928 } 928 }
929 929
930 void WebRtcAudioDeviceImpl::SetSessionId(int session_id) { 930 void WebRtcAudioDeviceImpl::SetSessionId(int session_id) {
931 session_id_ = session_id; 931 session_id_ = session_id;
932 } 932 }
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_message_filter.cc ('k') | content/renderer/notification_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698