diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 20:23:53 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 20:23:53 +0000 |
commit | 8cc5d337ad3729c8b9c79bb602b2b140b9cc5115 (patch) | |
tree | 19ea88e4bf1d9115f02c6a0549eebc8e59e71004 /chrome/browser/speech | |
parent | 6f33c1af729b1f19e49acc8c42ae0874266698f5 (diff) | |
download | chromium_src-8cc5d337ad3729c8b9c79bb602b2b140b9cc5115.zip chromium_src-8cc5d337ad3729c8b9c79bb602b2b140b9cc5115.tar.gz chromium_src-8cc5d337ad3729c8b9c79bb602b2b140b9cc5115.tar.bz2 |
Coverity: Initialize member variables.
CID=12740,12741,12797,12835,13132,13232,13257,13274,13303,13332
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3760001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/speech')
-rw-r--r-- | chrome/browser/speech/endpointer/energy_endpointer.cc | 18 | ||||
-rw-r--r-- | chrome/browser/speech/endpointer/energy_endpointer.h | 4 |
2 files changed, 17 insertions, 5 deletions
diff --git a/chrome/browser/speech/endpointer/energy_endpointer.cc b/chrome/browser/speech/endpointer/energy_endpointer.cc index 1f5a95f..fd72b3f 100644 --- a/chrome/browser/speech/endpointer/energy_endpointer.cc +++ b/chrome/browser/speech/endpointer/energy_endpointer.cc @@ -41,7 +41,7 @@ namespace speech_input { // state. class EnergyEndpointer::HistoryRing { public: - HistoryRing() {} + HistoryRing() : insertion_index_(0) {} // Resets the ring to |size| elements each with state |initial_state| void SetRing(int size, bool initial_state); @@ -119,9 +119,21 @@ float EnergyEndpointer::HistoryRing::RingSum(float duration_sec) { } EnergyEndpointer::EnergyEndpointer() - : endpointer_time_us_(0), + : status_(EP_PRE_SPEECH), + offset_confirm_dur_sec_(0), + endpointer_time_us_(0), + fast_update_frames_(0), + frame_counter_(0), max_window_dur_(4.0), - history_(new HistoryRing()) { + sample_rate_(0), + history_(new HistoryRing()), + decision_threshold_(0), + estimating_environment_(false), + noise_level_(0), + rms_adapt_(0), + start_lag_(0), + end_lag_(0), + user_input_start_time_us_(0) { } EnergyEndpointer::~EnergyEndpointer() { diff --git a/chrome/browser/speech/endpointer/energy_endpointer.h b/chrome/browser/speech/endpointer/energy_endpointer.h index de79e76..20476e7 100644 --- a/chrome/browser/speech/endpointer/energy_endpointer.h +++ b/chrome/browser/speech/endpointer/energy_endpointer.h @@ -122,8 +122,8 @@ class EnergyEndpointer { // RMS which must be exceeded to conclude frame is speech. float decision_threshold_; - // Flag to indicate that audio should be used to estmiate enviroment, prior to - // receiving user input. + // Flag to indicate that audio should be used to estimate environment, prior + // to receiving user input. bool estimating_environment_; // Estimate of the background noise level. Used externally for UI feedback. |