Chromium Code Reviews| Index: media/audio/audio_manager.h |
| diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h |
| index 915308ef77d89cfea1470ee0b1696d44b5b94e12..35bb586ba13229f084279f9e06e7c1f79af4e787 100644 |
| --- a/media/audio/audio_manager.h |
| +++ b/media/audio/audio_manager.h |
| @@ -145,6 +145,21 @@ class MEDIA_EXPORT AudioManager { |
| virtual void RemoveOutputDeviceChangeListener( |
| AudioDeviceListener* listener) = 0; |
| + // It is possible to register listeners for logging of important state |
|
DaleCurtis
2014/08/26 20:09:29
I don't understand why this is necessary? AudioIn
henrika (OOO until Aug 14)
2014/08/27 13:54:38
Removed. Thanks.
|
| + // changes. These are mainly intended for input streams and is used to track |
| + // down issues related to failing captured audio (http://crbug.com/404884). |
| + // The typical repsonse to receiving this callback is to add the information |
| + // to some sort of log file. |
| + // TODO(henrika): remove these when we have understood why audio is sometimes |
| + // not captured as it should. See http://crbug.com/405449. |
| + class StateChangeListener { |
| + public: |
| + virtual void OnStateChange(const std::string& state) = 0; |
| + }; |
| + |
| + virtual void AddStateChangeListener(StateChangeListener* listener) = 0; |
| + virtual void RemoveStateChangeListener(StateChangeListener* listener) = 0; |
| + |
| // Returns the default output hardware audio parameters for opening output |
| // streams. It is a convenience interface to |
| // AudioManagerBase::GetPreferredOutputStreamParameters and each AudioManager |