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

Side by Side Diff: content/renderer/media/media_stream_audio_processor_options.h

Issue 1081063003: [media_stream_audio_processor] Avoids updating UMA stats before AEC has valid results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed {} Created 5 years, 8 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_audio_processor_options.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 public: 94 public:
95 EchoInformation(); 95 EchoInformation();
96 virtual ~EchoInformation(); 96 virtual ~EchoInformation();
97 97
98 void UpdateAecDelayStats(webrtc::EchoCancellation* echo_cancellation); 98 void UpdateAecDelayStats(webrtc::EchoCancellation* echo_cancellation);
99 99
100 private: 100 private:
101 // Counter to track 5 seconds of processed 10 ms chunks in order to query a 101 // Counter to track 5 seconds of processed 10 ms chunks in order to query a
102 // new metric from webrtc::EchoCancellation::GetEchoDelayMetrics(). 102 // new metric from webrtc::EchoCancellation::GetEchoDelayMetrics().
103 int num_chunks_; 103 int num_chunks_;
104 bool echo_frames_received_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(EchoInformation); 106 DISALLOW_COPY_AND_ASSIGN(EchoInformation);
106 }; 107 };
107 108
108 // Enables the echo cancellation in |audio_processing|. 109 // Enables the echo cancellation in |audio_processing|.
109 void EnableEchoCancellation(AudioProcessing* audio_processing); 110 void EnableEchoCancellation(AudioProcessing* audio_processing);
110 111
111 // Enables the noise suppression in |audio_processing|. 112 // Enables the noise suppression in |audio_processing|.
112 void EnableNoiseSuppression(AudioProcessing* audio_processing); 113 void EnableNoiseSuppression(AudioProcessing* audio_processing);
113 114
(...skipping 14 matching lines...) Expand all
128 void StopEchoCancellationDump(AudioProcessing* audio_processing); 129 void StopEchoCancellationDump(AudioProcessing* audio_processing);
129 130
130 void EnableAutomaticGainControl(AudioProcessing* audio_processing); 131 void EnableAutomaticGainControl(AudioProcessing* audio_processing);
131 132
132 void GetAecStats(webrtc::EchoCancellation* echo_cancellation, 133 void GetAecStats(webrtc::EchoCancellation* echo_cancellation,
133 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); 134 webrtc::AudioProcessorInterface::AudioProcessorStats* stats);
134 135
135 } // namespace content 136 } // namespace content
136 137
137 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 138 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_audio_processor_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698