diff options
author | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-02 19:30:45 +0000 |
---|---|---|
committer | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-02 19:30:45 +0000 |
commit | 897bfb5aaaa57f0338a77fada1d5d3f9c3b38226 (patch) | |
tree | fddba9cf19f4258a0b36a3fae5e27f2422cd277e /content/browser/speech/speech_recognizer_impl.cc | |
parent | 103f19fbcf7d78efd8edc28bfabb3d4915a246de (diff) | |
download | chromium_src-897bfb5aaaa57f0338a77fada1d5d3f9c3b38226.zip chromium_src-897bfb5aaaa57f0338a77fada1d5d3f9c3b38226.tar.gz chromium_src-897bfb5aaaa57f0338a77fada1d5d3f9c3b38226.tar.bz2 |
Move media/audio files into media namespace
BUG=115187
TEST=compiles and runs without breaking audio tag; media_unittests, content_unittests
Review URL: https://chromiumcodereview.appspot.com/9805001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/speech_recognizer_impl.cc')
-rw-r--r-- | content/browser/speech/speech_recognizer_impl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content/browser/speech/speech_recognizer_impl.cc b/content/browser/speech/speech_recognizer_impl.cc index 05f81e7..07bd75e 100644 --- a/content/browser/speech/speech_recognizer_impl.cc +++ b/content/browser/speech/speech_recognizer_impl.cc @@ -23,6 +23,7 @@ using content::SpeechRecognitionEventListener; using content::SpeechRecognitionResult; using content::SpeechRecognizer; using media::AudioInputController; +using media::AudioManager; namespace { @@ -137,13 +138,12 @@ void SpeechRecognizerImpl::StartRecognition() { endpointer_.SetEnvironmentEstimationMode(); AudioManager* audio_manager = (testing_audio_manager_ != NULL) ? - testing_audio_manager_ : - BrowserMainLoop::GetAudioManager(); + testing_audio_manager_ : BrowserMainLoop::GetAudioManager(); const int samples_per_packet = kAudioSampleRate * GoogleOneShotRemoteEngine::kAudioPacketIntervalMs / 1000; - AudioParameters params(AudioParameters::AUDIO_PCM_LINEAR, kChannelLayout, - kAudioSampleRate, kNumBitsPerAudioSample, - samples_per_packet); + media::AudioParameters params( + media::AudioParameters::AUDIO_PCM_LINEAR, kChannelLayout, + kAudioSampleRate, kNumBitsPerAudioSample, samples_per_packet); audio_controller_ = AudioInputController::Create(audio_manager, this, params); DCHECK(audio_controller_.get()); VLOG(1) << "SpeechRecognizer starting record."; |