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

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

Issue 190553004: Revert "Attempt to fix audio wedges by restarting all streams on OSX." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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