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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // Returns the device id of an output device that belongs to the same hardware | 169 // Returns the device id of an output device that belongs to the same hardware |
170 // as the specified input device. | 170 // as the specified input device. |
171 // If the hardware has only an input device (e.g. a webcam), the return value | 171 // If the hardware has only an input device (e.g. a webcam), the return value |
172 // will be empty (which the caller can then interpret to be the default output | 172 // will be empty (which the caller can then interpret to be the default output |
173 // device). Implementations that don't yet support this feature, must return | 173 // device). Implementations that don't yet support this feature, must return |
174 // an empty string. | 174 // an empty string. |
175 virtual std::string GetAssociatedOutputDeviceID( | 175 virtual std::string GetAssociatedOutputDeviceID( |
176 const std::string& input_device_id) = 0; | 176 const std::string& input_device_id) = 0; |
177 | 177 |
178 // Called when a component has detected a OS level audio wedge. Shuts down | |
179 // all active audio streams and then restarts them transparently. See | |
180 // http://crbug.com/160920 | |
181 virtual void FixWedgedAudio() = 0; | |
182 | |
183 protected: | 178 protected: |
184 AudioManager(); | 179 AudioManager(); |
185 | 180 |
186 private: | 181 private: |
187 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 182 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
188 }; | 183 }; |
189 | 184 |
190 } // namespace media | 185 } // namespace media |
191 | 186 |
192 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 187 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |