Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Side by Side Diff: media/audio/audio_manager.h

Issue 61203008: Attempt to fix audio wedges by restarting all streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698