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_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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // device). Implementations that don't yet support this feature, must return | 169 // device). Implementations that don't yet support this feature, must return |
170 // an empty string. | 170 // an empty string. |
171 virtual std::string GetAssociatedOutputDeviceID( | 171 virtual std::string GetAssociatedOutputDeviceID( |
172 const std::string& input_device_id) = 0; | 172 const std::string& input_device_id) = 0; |
173 | 173 |
174 // Create a new AudioLog object for tracking the behavior for one or more | 174 // Create a new AudioLog object for tracking the behavior for one or more |
175 // instances of the given component. See AudioLogFactory for more details. | 175 // instances of the given component. See AudioLogFactory for more details. |
176 virtual scoped_ptr<AudioLog> CreateAudioLog( | 176 virtual scoped_ptr<AudioLog> CreateAudioLog( |
177 AudioLogFactory::AudioComponent component) = 0; | 177 AudioLogFactory::AudioComponent component) = 0; |
178 | 178 |
179 // Called when a component has detected a OS level audio wedge. Shuts down | |
180 // all active audio streams and then restarts them transparently. See | |
181 // http://crbug.com/160920 | |
182 virtual void FixWedgedAudio() = 0; | |
183 | |
184 protected: | 179 protected: |
185 AudioManager(); | 180 AudioManager(); |
186 | 181 |
187 private: | 182 private: |
188 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 183 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
189 }; | 184 }; |
190 | 185 |
191 } // namespace media | 186 } // namespace media |
192 | 187 |
193 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 188 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |