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

Side by Side Diff: media/audio/audio_manager.h

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unused error code and relevant resource, cleaned up include Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 MEDIA_AUDIO_AUDIO_MANAGER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // with 0 suggesting that the implementation use a default value for that 99 // with 0 suggesting that the implementation use a default value for that
100 // platform. 100 // platform.
101 // Returns NULL if the combination of the parameters is not supported, or if 101 // Returns NULL if the combination of the parameters is not supported, or if
102 // we have reached some other platform specific limit. 102 // we have reached some other platform specific limit.
103 // 103 //
104 // Do not free the returned AudioInputStream. It is owned by AudioManager. 104 // Do not free the returned AudioInputStream. It is owned by AudioManager.
105 // When you are done with it, call |Stop()| and |Close()| to release it. 105 // When you are done with it, call |Stop()| and |Close()| to release it.
106 virtual AudioInputStream* MakeAudioInputStream( 106 virtual AudioInputStream* MakeAudioInputStream(
107 const AudioParameters& params, const std::string& device_id) = 0; 107 const AudioParameters& params, const std::string& device_id) = 0;
108 108
109 // Used to determine if something else is currently making use of audio input.
110 virtual bool IsRecordingInProcess() = 0;
111
112 // Returns message loop used for audio IO. 109 // Returns message loop used for audio IO.
113 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0; 110 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0;
114 111
115 // Heavyweight tasks should use GetWorkerLoop() instead of GetMessageLoop(). 112 // Heavyweight tasks should use GetWorkerLoop() instead of GetMessageLoop().
116 // On most platforms they are the same, but some share the UI loop with the 113 // On most platforms they are the same, but some share the UI loop with the
117 // audio IO loop. 114 // audio IO loop.
118 virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() = 0; 115 virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() = 0;
119 116
120 // Allows clients to listen for device state changes; e.g. preferred sample 117 // Allows clients to listen for device state changes; e.g. preferred sample
121 // rate or channel layout changes. The typical response to receiving this 118 // rate or channel layout changes. The typical response to receiving this
(...skipping 22 matching lines...) Expand all
144 protected: 141 protected:
145 AudioManager(); 142 AudioManager();
146 143
147 private: 144 private:
148 DISALLOW_COPY_AND_ASSIGN(AudioManager); 145 DISALLOW_COPY_AND_ASSIGN(AudioManager);
149 }; 146 };
150 147
151 } // namespace media 148 } // namespace media
152 149
153 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 150 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/test/fake_speech_recognition_manager.cc ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698