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

Unified Diff: content/browser/speech/speech_recognizer_impl.cc

Issue 2665163002: Refactor AudioInputController and split stat by stream type. (Closed)
Patch Set: Compile Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/speech/speech_recognizer_impl.h ('k') | media/audio/audio_file_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognizer_impl.cc
diff --git a/content/browser/speech/speech_recognizer_impl.cc b/content/browser/speech/speech_recognizer_impl.cc
index d79c17113f2bcb22f5afd3969fd82a66854630bb..8a57992e749c026611e93f4186859bb86e50f020 100644
--- a/content/browser/speech/speech_recognizer_impl.cc
+++ b/content/browser/speech/speech_recognizer_impl.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <algorithm>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/time/time.h"
@@ -14,6 +16,7 @@
#include "content/browser/media/media_internals.h"
#include "content/browser/speech/audio_buffer.h"
#include "content/public/browser/speech_recognition_event_listener.h"
+#include "media/audio/audio_file_writer.h"
#include "media/base/audio_converter.h"
#if defined(OS_WIN)
@@ -589,7 +592,8 @@ SpeechRecognizerImpl::StartRecording(const FSMEventArgs&) {
new OnDataConverter(input_parameters, output_parameters));
audio_controller_ = AudioInputController::Create(
- audio_manager, this, this, input_parameters, device_id_, NULL);
+ audio_manager, this, this, nullptr, nullptr, input_parameters, device_id_,
+ /*agc_is_enabled*/ false);
if (!audio_controller_.get()) {
return Abort(
« no previous file with comments | « content/browser/speech/speech_recognizer_impl.h ('k') | media/audio/audio_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698