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

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

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/renderer_accessibility.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/bind.h" 7 #include "base/bind.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "content/renderer/media/audio_hardware.h" 10 #include "content/renderer/media/audio_hardware.h"
(...skipping 11 matching lines...) Expand all
22 output_buffer_size_(0), 22 output_buffer_size_(0),
23 input_channels_(0), 23 input_channels_(0),
24 output_channels_(0), 24 output_channels_(0),
25 input_sample_rate_(0), 25 input_sample_rate_(0),
26 output_sample_rate_(0), 26 output_sample_rate_(0),
27 input_delay_ms_(0), 27 input_delay_ms_(0),
28 output_delay_ms_(0), 28 output_delay_ms_(0),
29 last_error_(AudioDeviceModule::kAdmErrNone), 29 last_error_(AudioDeviceModule::kAdmErrNone),
30 last_process_time_(base::TimeTicks::Now()), 30 last_process_time_(base::TimeTicks::Now()),
31 session_id_(0), 31 session_id_(0),
32 bytes_per_sample_(0),
32 initialized_(false), 33 initialized_(false),
33 playing_(false), 34 playing_(false),
34 recording_(false) { 35 recording_(false) {
35 DVLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()"; 36 DVLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()";
36 DCHECK(RenderThreadImpl::current()) << 37 DCHECK(RenderThreadImpl::current()) <<
37 "WebRtcAudioDeviceImpl must be constructed on the render thread"; 38 "WebRtcAudioDeviceImpl must be constructed on the render thread";
38 } 39 }
39 40
40 WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl() { 41 WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl() {
41 DVLOG(1) << "WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl()"; 42 DVLOG(1) << "WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl()";
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 } 982 }
982 983
983 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { 984 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const {
984 NOTIMPLEMENTED(); 985 NOTIMPLEMENTED();
985 return -1; 986 return -1;
986 } 987 }
987 988
988 void WebRtcAudioDeviceImpl::SetSessionId(int session_id) { 989 void WebRtcAudioDeviceImpl::SetSessionId(int session_id) {
989 session_id_ = session_id; 990 session_id_ = session_id;
990 } 991 }
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/renderer_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698