| 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 |
| 178 protected: | 183 protected: |
| 179 AudioManager(); | 184 AudioManager(); |
| 180 | 185 |
| 181 private: | 186 private: |
| 182 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 187 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
| 183 }; | 188 }; |
| 184 | 189 |
| 185 } // namespace media | 190 } // namespace media |
| 186 | 191 |
| 187 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 192 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
| OLD | NEW |