OLD | NEW |
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_BASE_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual AudioParameters GetDefaultOutputStreamParameters() OVERRIDE; | 112 virtual AudioParameters GetDefaultOutputStreamParameters() OVERRIDE; |
113 virtual AudioParameters GetOutputStreamParameters( | 113 virtual AudioParameters GetOutputStreamParameters( |
114 const std::string& device_id) OVERRIDE; | 114 const std::string& device_id) OVERRIDE; |
115 | 115 |
116 virtual AudioParameters GetInputStreamParameters( | 116 virtual AudioParameters GetInputStreamParameters( |
117 const std::string& device_id) OVERRIDE; | 117 const std::string& device_id) OVERRIDE; |
118 | 118 |
119 virtual std::string GetAssociatedOutputDeviceID( | 119 virtual std::string GetAssociatedOutputDeviceID( |
120 const std::string& input_device_id) OVERRIDE; | 120 const std::string& input_device_id) OVERRIDE; |
121 | 121 |
| 122 virtual void FixWedgedAudio() OVERRIDE; |
| 123 |
122 protected: | 124 protected: |
123 AudioManagerBase(); | 125 AudioManagerBase(); |
124 | 126 |
125 // Shuts down the audio thread and releases all the audio output dispatchers | 127 // Shuts down the audio thread and releases all the audio output dispatchers |
126 // on the audio thread. All audio streams should be freed before Shutdown() | 128 // on the audio thread. All audio streams should be freed before Shutdown() |
127 // is called. This must be called in the destructor of every AudioManagerBase | 129 // is called. This must be called in the destructor of every AudioManagerBase |
128 // implementation. | 130 // implementation. |
129 void Shutdown(); | 131 void Shutdown(); |
130 | 132 |
131 void SetMaxOutputStreamsAllowed(int max) { max_num_output_streams_ = max; } | 133 void SetMaxOutputStreamsAllowed(int max) { max_num_output_streams_ = max; } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // Map of cached AudioOutputDispatcher instances. Must only be touched | 197 // Map of cached AudioOutputDispatcher instances. Must only be touched |
196 // from the audio thread (no locking). | 198 // from the audio thread (no locking). |
197 AudioOutputDispatchers output_dispatchers_; | 199 AudioOutputDispatchers output_dispatchers_; |
198 | 200 |
199 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 201 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
200 }; | 202 }; |
201 | 203 |
202 } // namespace media | 204 } // namespace media |
203 | 205 |
204 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 206 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
OLD | NEW |